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

GPIOTE interrupt

hi, I used gpiote to capture an external interrupt when I found an anomaly.           I configured the interrupt input io, burn the program can be normal operation, when I power down the device, and then re-power, found that the equipment is not working properly. At this point I need to press the reset button, the program will run normally

err_code = nrf_drv_gpiote_init();
APP_ERROR_CHECK(err_code);

nrf_drv_gpiote_in_config_t in_config = GPIOTE_CONFIG_IN_SENSE_LOTOHI(false);
in_config.pull = NRF_GPIO_PIN_PULLUP;

err_code = nrf_drv_gpiote_in_init(BUTTON_1, &in_config, in_pin_handler);
Related