This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

我在cc2530z-stack协议栈 配置按键的时候 遇到一些问题

首先在key.h  定义

#define KEY1 P0_4
#define KEY2 P0_5

key.c    HalKeyInit(void) 里面配置引脚   普通   输入

P0SEL &= ~0X30;
P0DIR &= ~0X30;

HalKeyConfig里面

PICTL |= 0X01;     下降沿
P0IEN |= 0X30;     中断使能
IEN1 |= 0X20;        P0口中断使能
P0IFG &= ~0X30;   清除标志位

运行的时候   按下P04(KEY1)  会进入中断

P05  中断进不去    是什么原因啊   裸机上一切正常