48 #define PWR_OFFSET (PWR_BASE - PERIPH_BASE) 53 #define CR_OFFSET (PWR_OFFSET + 0x00) 54 #define DBP_BitNumber 0x08 55 #define CR_DBP_BB (PERIPH_BB_BASE + (CR_OFFSET * 32) + (DBP_BitNumber * 4)) 58 #define PVDE_BitNumber 0x04 59 #define CR_PVDE_BB (PERIPH_BB_BASE + (CR_OFFSET * 32) + (PVDE_BitNumber * 4)) 64 #define CSR_OFFSET (PWR_OFFSET + 0x04) 65 #define EWUP_BitNumber 0x08 66 #define CSR_EWUP_BB (PERIPH_BB_BASE + (CSR_OFFSET * 32) + (EWUP_BitNumber * 4)) 71 #define CR_DS_MASK ((uint32_t)0xFFFFFFFC) 72 #define CR_PLS_MASK ((uint32_t)0xFFFFFF1F) 167 tmpreg |= PWR_PVDLevel;
209 tmpreg |= PWR_Regulator;
245 #if defined ( __CC_ARM ) 267 if ((
PWR->CSR & PWR_FLAG) != (uint32_t)
RESET)
292 PWR->CR |= PWR_FLAG << 2;
void PWR_DeInit(void)
Deinitializes the PWR peripheral registers to their default reset values.
void PWR_BackupAccessCmd(FunctionalState NewState)
Enables or disables access to the RTC and backup registers.
void PWR_WakeUpPinCmd(FunctionalState NewState)
Enables or disables the WakeUp Pin functionality.
#define IS_PWR_CLEAR_FLAG(FLAG)
This file contains all the functions prototypes for the PWR firmware library.
void assert_param(int val)
#define IS_PWR_PVD_LEVEL(LEVEL)
void PWR_PVDLevelConfig(uint32_t PWR_PVDLevel)
Configures the voltage threshold detected by the Power Voltage Detector(PVD).
#define IS_FUNCTIONAL_STATE(STATE)
#define IS_PWR_STOP_ENTRY(ENTRY)
void RCC_APB1PeriphResetCmd(uint32_t RCC_APB1Periph, FunctionalState NewState)
Forces or releases Low Speed APB (APB1) peripheral reset.
void PWR_EnterSTANDBYMode(void)
Enters STANDBY mode.
#define RCC_APB1Periph_PWR
#define SCB_SCR_SLEEPDEEP
void PWR_EnterSTOPMode(uint32_t PWR_Regulator, uint8_t PWR_STOPEntry)
Enters STOP mode.
This file contains all the functions prototypes for the RCC firmware library.
void PWR_PVDCmd(FunctionalState NewState)
Enables or disables the Power Voltage Detector(PVD).
void PWR_ClearFlag(uint32_t PWR_FLAG)
Clears the PWR's pending flags.
#define IS_PWR_REGULATOR(REGULATOR)
#define PWR_STOPEntry_WFI
FlagStatus PWR_GetFlagStatus(uint32_t PWR_FLAG)
Checks whether the specified PWR flag is set or not.
#define IS_PWR_GET_FLAG(FLAG)