I have multiple GPIOs that are configured to use GPIOTE in my application. When one of these GPIOs is in the active state I start timer. Once the timer expires I want to enter system off using sd_power_system_off()
and I want the GPIO that started the timer to wakeup the system.
Do I need to disable the GPIOTE events for this pin before calling nrf_gpio_cfg_sense_set()
?
What about peripherals and interrupts? Do peripherals need to be stopped and interrupts disabled before calling sd_power_system_off()
?
Thanks, Darren