STOP mode in STM32F103
I'm looking for the low power function of the STM32F103TB. I have some questions about this function:
1. I read the code of the AN2629, there has no interrupt routine code. So when we use the RTC alarm and the PA0 (wake-up pin) to wake up the MCU, where the MCU recover from after the stop mode entering (WFE +NOP)? it starts to implement the RTC interrupt (or EXTI0) or RTC alarm (EXTI17)? or just to continue to implement after the NOP? I checked the document, I guess it may not cause any interrupt actually, just to wake-up, then to continue to the last instruction (NOP). Is it right? But the corresponding bit is still available, so user should then to check the flag bit to identify which has happened? Is it right?
2. When recover from the stop mode, all the clocks should be re-initialized (configured again). But all of the other registers of the peripheral don't because they are keeping the values. is it right?
3. Do I need to disable the (global) interrupt before enter the stop mode, so it could avoid to interrupt occurs when waked-up but all of the recover (re-config the clocks) is not yet done.
