51 #define PWR_OFFSET (PWR_BASE - PERIPH_BASE) 56 #define CR_OFFSET (PWR_OFFSET + 0x00) 57 #define DBP_BitNumber 0x08 58 #define CR_DBP_BB (PERIPH_BB_BASE + (CR_OFFSET * 32) + (DBP_BitNumber * 4)) 61 #define PVDE_BitNumber 0x04 62 #define CR_PVDE_BB (PERIPH_BB_BASE + (CR_OFFSET * 32) + (PVDE_BitNumber * 4)) 67 #define CR_DS_MASK ((uint32_t)0xFFFFFFFC) 68 #define CR_PLS_MASK ((uint32_t)0xFFFFFF1F) 171 tmpreg |= PWR_PVDLevel;
228 PWR->CSR |= PWR_WakeUpPin;
233 PWR->CSR &= ~PWR_WakeUpPin;
405 tmpreg |= PWR_Regulator;
450 #if defined ( __CC_ARM ) 494 if ((
PWR->CSR & PWR_FLAG) != (uint32_t)
RESET)
519 PWR->CR |= PWR_FLAG << 2;
#define SCB_SCR_SLEEPDEEP_Msk
#define IS_PWR_CLEAR_FLAG(FLAG)
#define IS_PWR_WAKEUP_PIN(PIN)
void assert_param(int val)
void PWR_EnterSleepMode(uint8_t PWR_SLEEPEntry)
Enters Sleep mode.
#define IS_PWR_PVD_LEVEL(LEVEL)
void PWR_BackupAccessCmd(FunctionalState NewState)
Enables or disables access to the RTC and backup registers.
#define IS_FUNCTIONAL_STATE(STATE)
void PWR_PVDLevelConfig(uint32_t PWR_PVDLevel)
Configures the voltage threshold detected by the Power Voltage Detector(PVD).
#define IS_PWR_STOP_ENTRY(ENTRY)
#define PWR_SLEEPEntry_WFI
This file contains all the functions prototypes for the PWR firmware library.
void PWR_PVDCmd(FunctionalState NewState)
Enables or disables the Power Voltage Detector(PVD).
FlagStatus PWR_GetFlagStatus(uint32_t PWR_FLAG)
Checks whether the specified PWR flag is set or not.
void RCC_APB1PeriphResetCmd(uint32_t RCC_APB1Periph, FunctionalState NewState)
Forces or releases Low Speed APB (APB1) peripheral reset.
This file contains all the functions prototypes for the RCC firmware library.
void PWR_EnterSTANDBYMode(void)
Enters STANDBY mode.
#define RCC_APB1Periph_PWR
void PWR_ClearFlag(uint32_t PWR_FLAG)
Clears the PWR's pending flags.
void PWR_EnterSTOPMode(uint32_t PWR_Regulator, uint8_t PWR_STOPEntry)
Enters STOP mode.
#define IS_PWR_SLEEP_ENTRY(ENTRY)
void PWR_WakeUpPinCmd(uint32_t PWR_WakeUpPin, FunctionalState NewState)
Enables or disables the WakeUp Pin functionality.
void PWR_DeInit(void)
Deinitializes the PWR peripheral registers to their default reset values.
#define IS_PWR_REGULATOR(REGULATOR)
#define PWR_STOPEntry_WFI
#define IS_PWR_GET_FLAG(FLAG)