2 posts / 0 new
Last post
yachao
Offline
Last seen:6 years 1 month ago
Joined:2014-06-04 03:39
external interrupt

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

MHv_Dialog
Offline
Last seen:2 weeks 2 days ago
Staff
Joined:2013-12-06 15:10
Hi yachao,

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.