Hmm... this should be a simple question. But I haven't found a direct answer yet in the online SDK docs, the ARM NVIC docs, nor in this forum (and have only been confused by trying to work with the combination of them :-)
Im using the S110 SD, with SDK 6.2.1 and the GPIOTE peripheral, which I've initialized and registered a single user. It appears to be running at NRF_APP_PRIORITY_LOW by default, so that when the GPIOTE handler dispatches to my sub-handler, that code is subject to interrupt by other peripherals running at the same level (but with lower device address?)
Where and how do I call
uint32_t sd_nvic_SetPriority(IRQn_Type IRQn, nrf_app_irq_priority_t priority)
Before or after initializing the GPIOTE module? Can the priority level be changed dynamically or is it set for the life of the app? And what's the appropriate value of the IRQn argument for the GPIOTE device? (the symbol GPIOTE_IRQn doesn't seem to be defined.)
Is there some sample code that demonstrates this?
TIA,
Mike