Hello,
I am using nRF5 SDK16.
Let's say app_timer generates an interrupt right before a call to app_timer_stop(). Example:
// app_timer_stop() is called inside a GPIOTE ISR.
void gpiote_ISR(nrf_drv_gpiote_pin_t pin, nrf_gpiote_polarity_t action) {
do something(); // at this stage, app_timer generates an interrupt with same or less priority compared to current GPIOTE interrupt, so there is no context switch.
app_timer_stop(timer_);
}
Will the generated timer interrupt be called after GPIOTE ISR is finished? Or will it be removed from the interrupt queue? In other words, does app_timer_stop() remove all timer interrupts waiting in the queue.
I would appreciate your help.