User Activity

Hi,This is my first post by the way, I do have stm32f401 and I am trying to use the stand by mode , I want to detect the wakeup reason, is it RTC or reset button, in case of RTC I will do one thing and incase of reset button I will do something else,...