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.

PxIFG寄存器人为置1有何影响?



Hi,各位专家:

    我看TI中ZStack的ZStack-CC2530-2.5.1a\Components\hal\target\CC2530EB\hal_key.c的中断处理程序halProcessKeyInterrupt,对PxIFG寄存器的清0都是这样操作的:

 HAL_KEY_SW_6_PXIFG = ~(HAL_KEY_SW_6_BIT); /* Clear Interrupt Flag */

这样就相当于把特定位置0,其它位置1,datasheet上也没提到对PxIFG人为置1有何影响。

哪位了解人为对PxIFG寄器置位的影响呢?谢谢!