Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

Latch disabled GPIOTE interrupt?

Is it possible to disable a GPIOTE interrupt, while performing some processing, and latch any incoming interrupt while that processing is occurring, so it fires once the interrupt is reenabled?

My scenario, external SPI device receives some data, signals the nRF by an interrupt line, I want to disable the interrupt while I retrieve that data, if an interrupt occurs while I'm retrieving that data, I want to finish processing, reenable interrupts and then process go ahead and process it.

I tried nrfx_gpiote_in_event_disable but the interrupt is 'lost' as the interrupt is not latched while disabled.

Is this possible?

 

Related