Hi everyone. Here is my code for 2 different timers that put uc to sleep and wake it up(supposedly)
Definitions:
Create Timers:
Handlers:
Main() function calls:
sleep_Uc() function:
the code works fine when there is no sleep_Uc(); function. But when it is used, LED_1 toggle from low to high and uC goes to sleep. But the timer for lcd doesn't wake the processor. Additionally, when app_timer IRQ priority higher then GPIOTE IRQ priority, GPIOTE interrupts doesnt wake the uC either.
At the moment, IRQ_Priority of app_timer is 3, IRQ_Priority of GPIOTE is 2. When an GPIOTE interrupt occurs, uC wakes and goes to sleep immediatelly due to queued interrupts of app_timer i guess. How can i make the system wake with app_timer interrupts ?