I am new to nrf52832. I am using pin change interrupt. I want to know that how to mask pin change interrupt?
Thanks in Advance
I am new to nrf52832. I am using pin change interrupt. I want to know that how to mask pin change interrupt?
Thanks in Advance
Mask as in to make the MCU ignore the interrupts generated. Then you can do that by disabling them at NVIC level (even though the interrupt is enabled in GPIO level)
NVIC_EnableIRQ(GPIOTE_IRQn);
If you are using BLE softdevice then, it is as below
sd_nvic_DisableIRQ(GPIOTE_IRQn);
Hi,
I actually want to Mask/ignore/disable an particular interrupt PIN before making nrf sleep, and again unmask/enable the same PIN after wake from sleep, to make sleep i have used this API >> sd_app_evt_wait() <<
following function is to enable interrupt of pin,
static void gpio_init(void)
{
ret_code_t err_code;
err_code = nrf_drv_gpiote_init();
nrf_drv_gpiote_in_config_t pin_config = {
.is_watcher = false,
.hi_accuracy = true,
.pull = NRF_GPIO_PIN_PULLUP,
.sense = NRF_GPIOTE_POLARITY_HITOLO
};
err_code = nrf_drv_gpiote_in_init(PIN_NUM, &pin_config,pin_handler);
APP_ERROR_CHECK(err_code);
nrf_drv_gpiote_in_event_enable(PIN_NUM, true);
}
I too have same problem can anyone assist the same..
Most of us on holidays until New year. We will get back to you once we are back to office after 2nd January. We appreciate your patience.
Most of us on holidays until New year. We will get back to you once we are back to office after 2nd January. We appreciate your patience.