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

Wake up from System Off sleep mode via Multiple Interrupt sources

Hello NRF Team,

We are using nrf51822 chip for one of our product. Currently, we are using a GPIO connected to user button to Turn On the device from system off sleep mode.

We are planning to implement multiple GPIO's (one connected to user button as the existing one and the other when another GPIO pin that will become high) to Turn On the device from system off sleep mode.

This is the code snippet for the existing logic.

uint32_t bsp_btn_ble_sleep_mode_prepare(void)
{
uint32_t err_code = bsp_wakeup_button_enable(BTN_ID_WAKEUP);
RETURN_ON_ERROR_NOT_NOT_SUPPORTED(err_code);

err_code = bsp_wakeup_button_enable(BTN_ID_WAKEUP_BOND_DELETE);
RETURN_ON_ERROR_NOT_NOT_SUPPORTED(err_code);

return NRF_SUCCESS;
}

can we add one more GPIO to this bsp_wakeup_button_enable() function? so, the device will Turn On from the sleep mode on any of the two GPIO events.

Is it possible to use multiple sources to wake up from sleep or it is limited to only one?

Waiting for your response.

Thanks in advance.

Best,

Krish

Parents Reply Children
No Data
Related