Question
Get Standby Mode wake up source?
Posted on June 01, 2018 at 12:16
I'm putting my STM32L0 in Standby Mode and it can be woken up either by an RTC timer event or by WKUP Pin. Is there a way to check what the source was of the wakeup event? (So check if wakeup was because of WAKEUP pin or by RTC)?
*EDIT*
Found a method which works for my application. I check to see if the WUTF is set from the RTC->ISR register. If it is set, it means the MCU woke up from the RTC timer. Otherwise I assume it was from the WKUP pin.
