Dear Sirs!
I use SDK 12.2. I need without RTOS to put controller in sleep mode (but not OFF mode) and be able to wake it up by pressing button, connected to GPIO.
GPIO with interrupt. I am confused how to do it? Please explain how to set it in deep sleep?.
Will controller perform next instruction after wake up and interrupt processing?
Additional question.
In all examples I see code
// Activate deep sleep mode
SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
But I cannot find in datasheet SCB register and its bits. Where is system control register in datasheet? Different name?
Best regards