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.

z-stack用HAL_ISR_FUNCTION注册P0中断,不进中断函数

Other Parts Discussed in Thread: CC2530

我用cc2530,和ZStack-CC2530-2.5.1a协议栈。在我的应用层上。使用函数HAL_ISR_FUCTION注册P1口中断,有外界触发,设置断点能进中断服务函数。

但是我用同样的代码,同样的函数注册P0口中断时,有外界触发就无法进入中断。请问这是怎么回事?

我的寄存器配置:

 APCFG &= ~0x40;  
 P0SEL &= ~0x40;
 P0DIR &= ~0x40;
 P0IEN |= 0x40;
 PICTL |= 0x01;           // 下降沿触发中断
 P0IE = 1;
 P0IFG = 0;