Before I call sd_power_system_off(), I do the following:
NRF_TWI0->ENABLE = 0; NRF_TWI1->ENABLE = 0; NRF_ADC->ENABLE = 0; NRF_SPI0->ENABLE = 0; NRF_UART0->ENABLE = 0;
How do I disable the GPIOTE module? There is no "ENABLE" or "POWER" field.
Before I call sd_power_system_off(), I do the following:
NRF_TWI0->ENABLE = 0; NRF_TWI1->ENABLE = 0; NRF_ADC->ENABLE = 0; NRF_SPI0->ENABLE = 0; NRF_UART0->ENABLE = 0;
How do I disable the GPIOTE module? There is no "ENABLE" or "POWER" field.
Hi,
Most peripherals will be powered off when going to SYSTEMOFF, so there is no need to manually shutting them down. In case you want to disable the PORT event (wakeup on GPIO), this can be done in the NRF_GPIO->PIN_CNF[] register. If you want to disable a GPIOTE channel, just write the default value into NRF_GPIOTE->CONFIG[n] (reset value = 0)
Cheers, Håkon
Hi,
Most peripherals will be powered off when going to SYSTEMOFF, so there is no need to manually shutting them down. In case you want to disable the PORT event (wakeup on GPIO), this can be done in the NRF_GPIO->PIN_CNF[] register. If you want to disable a GPIOTE channel, just write the default value into NRF_GPIOTE->CONFIG[n] (reset value = 0)
Cheers, Håkon