Hi, Dialog,
我想要使用两个回调函数来监控两个external interrupt, how should i do this?
for example, if i want to use function A to monitor the state change of P0_0, and use function B to monitor the change of P0_1, how should i register these two functions?
i know the function "wkupct_register_callback" can register one call back function, by if i call this function twice, only the last one works, the first one never work.
any advises? Thanks
Hi yachao,
You can only register one call-back function with wkupct_register_callback. You will have to read the level of the actual GPIOs to determin which pin transition caused the interrupt. There is only one interrupt available during sleep mode.