Hello
This is probably a very simple problem to solve but I'm having trouble disabling an RTC0 interrupt by using a GPIOTE PORT interrupt on an nRF51 board.
Basically, I have an RTC0 counter triggering an interrupt once per second to read data from some sensors. I'm trying to use a GPIOTE interrupt to stop the RTC0, but I don't seem to be able to execute my GPIOTE function when the RTC0 interrupt is active. What's the best way to do this?
I've tried setting the priority of the two events as follows:
NVIC_SetPriority(RTC0_IRQn, 2);
NVIC_SetPriority(GPIOTE_IRQn, 1);
But the RTC0 interrupt does not respond, however each interrupt subroutine works fine individually. Any idea why this is the case?
Any help would be greatly appreciated.
Thanks