SDK13 nRF52 S132.
Hi! Correct I understand and implemented how to make interrupt?
I use gpiote.
void gpiote_init (void)
{
nrf_gpio_cfg_input(INT1, NRF_GPIO_PIN_NOPULL); //Configure button 0 as input
nrf_gpiote_event_configure(0, INT1, NRF_GPIOTE_POLARITY_TOGGLE); //Configure GPIOTE channel 0, to generate an event from button 0:
NRF_GPIOTE->INTENSET = GPIOTE_INTENSET_IN0_Enabled; //Set GPIOTE interrupt register on channel 0
NVIC_EnableIRQ(GPIOTE_IRQn); //Enable interrupts
}
void GPIOTE_IRQHandler()
{
NRF_GPIOTE->EVENTS_IN[0] = 0;
HAL_GPIO_EXTI_Callback();
}
I don't have ext interrupt.