User Activity

Its possible to get a flag after standby mode? The signal used to wake up the mcu will remain a lot or time, so I can read it before the waking up, so maybe changing the configurtaion of the pins to normal GPIO?No idea how to solve it and I'm new in ...