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

button interrupt with long push

Hello, I am using nrf52832 custom board, with SDK 11.0.0 and s132_nrf52_2.0.0, and trying to create an interrupt event on wake up from system off by pressing BSP_BUTTON_0 (only one button available). Following the nrf51-powerdown examples (github.com/.../system_off_wakeup_on_gpiote), I was able to setup GPIOTE to generate an interrupt event and wakeup task on pin signal low. But have noticed I need a second button press to generate an interrupt. The original interrupt is missed possibly as the application is not ready to process it.

Could you please confirm if this is possible or maybe a long button press can be used to generate "two events": one task to wake up from system off and the other to turn on an LED for example. Instead of two button presses for each. Thanks in advanced.

Related