Hello, I'm new to the Nordic SDK and I would like to ask you for help with implementation of PORT events for revision < 3 in "low power" mode instead of "high power" mode. I have following implementation to check the gpio input button:
void init_gpio_button()
{
nrf_gpio_cfg_input(GPIO_BUTTON, NRF_GPIO_PIN_PULLUP);
uint32_t err_code = nrf_drv_gpiote_init();
APP_ERROR_CHECK(err_code);
nrf_drv_gpiote_in_config_t btn = GPIOTE_CONFIG_IN_SENSE_HITOLO(true);
btn.pull = NRF_GPIO_PIN_PULLUP;
nrf_drv_gpiote_in_uninit(GPIO_BUTTON);
err_code = nrf_drv_gpiote_in_init(GPIO_BUTTON, &btn, btn_handler_isr);
APP_ERROR_CHECK(err_code);
nrf_drv_gpiote_in_event_enable(GPIO_BUTTON, true);
}
Please, how to convert this code to "low power"? Is it enough to configure GPIOTE_CONFIG_IN_SENSE_HITOLO.hi_accuracy = false?
Thank you for any help.