I am using a nRF52840 with "SEGGER Embedded Studio for ARM 5.10a" and "nRF5_SDK_17.0.0_9d13099" sdk.
I am enabling a interrupt on a GPIOTE pin using this code.
nrf_drv_gpiote_in_config_t gpiote_inConfig =
{
.sense = senseTrnsiton, \
.pull = GPIO_PIN_CNF_PULL_Pullup, \
.is_watcher = false, \
.hi_accuracy = true, \
.skip_gpio_setup = false, \
};
err_code = nrf_drv_gpiote_in_init(pin_number, &gpiote_inConfig, gpiote_drvInEventhandler);
*gpiote_appInEventHandler[pin_number] = actionEvent;
APP_ERROR_CHECK(err_code);
nrf_drv_gpiote_in_event_enable(pin_number, true);
I want to disable this event inside the event handler as soon as it triggers.
I am calling this function to disable interrupt.
nrf_drv_gpiote_in_event_disable(pin_number);
But its not working. Please help
