器件型号:MSP432P4111
工具/软件:Code Composer Studio
你(们)好。
我在带有 RTOS 的 P2.4上有一个 GPIO 中断、代码是:
{ … … GPIO_setConfig (P_GPIO_P2_4、GPIO_CFG_IN_pu | GPIO_CFG_IN_INT_FALLING); //安装按钮回调*/ GPIO_setCallback (P_GPIO_P2_4、gpioFpgaFxn0); //启用中断*/ GPIO_enableInt (P_GPIO_设置 回 调4);*//开始回调*(*);* BIOS 回读*******/回调函数*。 */ void gpioFpgaFxn0 (uint_least8_t index) { Semaphore_post (semaphore_handle (&FPGA_spiTaskAlert)); }
我看到 REG:
它的 P2IFG = 0x10、P2IV = P2IFG4。
但代码无法转至回调函数......
我接下来应该怎么做?
非常感谢。