This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Multiple GPIO wake up source

I am stuck on a particular problem when implementing gpio wake up interrupts.

I want my peripheral to be dormant for most of the time and only wake up when it receives an interrupt from a GPIO source (accelerometer, magnetometer ect) . I am running into difficulties determining which GPIO caused the device to wake up - I have tried pin_status1 = (NRF_GPIO->IN & (1 << PIN_1) & (1 << PIN_2)); with no luck.

Does anyone have any suggestions to achieve this functionality?

Thanks,

Related