在线时间18 小时
UID200783
注册时间2010-7-17
NXP金币0
该用户从未签到
注册会员

- 积分
- 106
- 最后登录
- 1970-1-1
|

楼主 |
发表于 2014-12-5 09:17:43
|
显示全部楼层
下面是配置代码,应该是有使能了
/* PORTB_PCR3: ISF=0,MUX=1 */
PORTB_PCR3 = (uint32_t)((PORTB_PCR3 & (uint32_t)~(uint32_t)(
PORT_PCR_ISF_MASK |
PORT_PCR_MUX(0x06)
)) | (uint32_t)(
PORT_PCR_MUX(0x01)
));
/* PORTB_PCR4: ISF=0,MUX=1 */
PORTB_PCR4 = (uint32_t)((PORTB_PCR4 & (uint32_t)~(uint32_t)(
PORT_PCR_ISF_MASK |
PORT_PCR_MUX(0x06)
)) | (uint32_t)(
PORT_PCR_MUX(0x01)
));
/* PORTB_PCR5: ISF=0,MUX=1 */
PORTB_PCR5 = (uint32_t)((PORTB_PCR5 & (uint32_t)~(uint32_t)(
PORT_PCR_ISF_MASK |
PORT_PCR_MUX(0x06)
)) | (uint32_t)(
PORT_PCR_MUX(0x01)
));
/* PORTB_PCR3: ISF=1,IRQC=0x0B */
PORTB_PCR3 = (uint32_t)((PORTB_PCR3 & (uint32_t)~(uint32_t)(
PORT_PCR_IRQC(0x04)
)) | (uint32_t)(
PORT_PCR_ISF_MASK |
PORT_PCR_IRQC(0x0B)
));
/* PORTB_PCR4: ISF=1,IRQC=0x0B */
PORTB_PCR4 = (uint32_t)((PORTB_PCR4 & (uint32_t)~(uint32_t)(
PORT_PCR_IRQC(0x04)
)) | (uint32_t)(
PORT_PCR_ISF_MASK |
PORT_PCR_IRQC(0x0B)
));
/* PORTB_PCR5: ISF=1,IRQC=0x0B */
PORTB_PCR5 = (uint32_t)((PORTB_PCR5 & (uint32_t)~(uint32_t)(
PORT_PCR_IRQC(0x04)
)) | (uint32_t)(
PORT_PCR_ISF_MASK |
PORT_PCR_IRQC(0x0B)
)); |
|