I have to external interrupt source, one is a button which is pulled-up to 3.3V, but another is a wave that directs connect to PIO9 of CSR1010.
Then button press can wake up the chip ,but the edge of the wave can't . does anybody know why? appreciate for your reply!
You have to define edge both
PioSetEventMask(BUTTON_PIO_MASK, pio_event_mode_both);
Nissim,thanks for your advice. set eventmask of PIO9 with pio_event_mode_both or pio_event_mode_falling can wake the chip.I'm really amazing that if I set PIO9 of pio_event_mode_rising,then can't wake up. do you know why? or I have missed some settings?
The button you use has pulled up to 3V, so, when pressed it short to GND ( need to anyway)
So it can send only GND to pio9
so wake up can be only by down going down by pressing or up-going by relish the bottom.
call my Skype nissim.test I will explain better.