Hi Folks,
I am currently implementing a power down routine onto the nRF52840 SoC and I have some questions regarding the right way to configure to system On sleep mode.
During Run mode, I have many interrupts configured like UART, SPI, I2C, BLE (via Softdevice) and I was wondering how to prepare the sleep mode before powering down (with nrf_pwr_mgmt_run() for example) in order to wake up only with a GPIO event. (thanks to GPIOTE if I have well understood )
Do I need to manually disable all unused interrupt (UART/SPI/I2C and BLE) before going to sleep mode ? Is there a fast way to configure it without disabling / enabling each time interrupt ?
The last question : Could you please provide me some code samples demonstrating this particular kind of use?
The best.
Sebastien