mode. By keeping the internal regulator ON during Stop
mode, the consumption is higher although the startup time is
reduced.
17.2.9.3 PWR_EnterSTANDBYMode
void PWR_EnterSTANDBYMode ( void )
ï‚· In Standby mode, all I/O pins are high impedance except for:
ï‚· Reset pad (still available)
ï‚· RTC_AF1 pin (PC13) if configured for Wakeup pin 2
(WKUP2), tamper, time-stamp, RTC Alarm out, or RTC clock
calibration out.
ï‚· WKUP pin 1 (PA0) and WKUP pin 3 (PE6), if enabled.
17.2.10 Flag management functions
17.2.10.1 PWR_GetFlagStatus
FlagStatus PWR_GetFlagStatus ( uint32_t PWR_FLAG)
Checks whether the specified PWR flag is set or not.
ï‚· PWR_FLAG : specifies the flag to check. This parameter can
be one of the following values: PWR_FLAG_WU: Wake Up
flag. This flag indicates that a wakeup event was received
from the WKUP pin or from the RTC alarm (Alarm A or Alarm
B), RTC Tamper event, RTC TimeStamp event or RTC
Wakeup. PWR_FLAG_SB: StandBy flag. This flag indicates
that the system was resumed from StandBy mode.
PWR_FLAG_PVDO: PVD Output. This flag is valid only if
PVD is enabled by the PWR_PVDCmd() function.
PWR_FLAG_VREFINTRDY: Internal Voltage Reference
Ready flag. This flag indicates the state of the internal voltage
reference, VREFINT.
ï€ PWR_FLAG_WU : Wake Up flag. This flag indicates
that a wakeup event was received from the WKUP pin or
from the RTC alarm (Alarm A or Alarm B), RTC Tamper