Go to the documentation of this file.
36 #ifdef HAL_PWR_MODULE_ENABLED
43 #define PWR_OVERDRIVE_TIMEOUT_VALUE 1000
44 #define PWR_UDERDRIVE_TIMEOUT_VALUE 1000
45 #define PWR_BKPREG_TIMEOUT_VALUE 1000
46 #define PWR_VOSRDY_TIMEOUT_VALUE 1000
137 uint32_t tickstart = 0;
152 if((
HAL_GetTick() - tickstart ) > PWR_BKPREG_TIMEOUT_VALUE)
166 uint32_t tickstart = 0;
181 if((
HAL_GetTick() - tickstart ) > PWR_BKPREG_TIMEOUT_VALUE)
261 uint32_t tickstart = 0;
273 if((
HAL_GetTick() - tickstart ) > PWR_OVERDRIVE_TIMEOUT_VALUE)
287 if((
HAL_GetTick() - tickstart ) > PWR_OVERDRIVE_TIMEOUT_VALUE)
307 uint32_t tickstart = 0;
319 if((
HAL_GetTick() - tickstart ) > PWR_OVERDRIVE_TIMEOUT_VALUE)
333 if((
HAL_GetTick() - tickstart ) > PWR_OVERDRIVE_TIMEOUT_VALUE)
381 uint32_t tempreg = 0;
382 uint32_t tickstart = 0;
403 if((
HAL_GetTick() - tickstart ) > PWR_UDERDRIVE_TIMEOUT_VALUE)
415 tempreg |= Regulator;
479 uint32_t tickstart = 0;
524 if((
HAL_GetTick() - tickstart ) > PWR_VOSRDY_TIMEOUT_VALUE)
#define assert_param(expr)
Include module's header file.
#define __HAL_PWR_GET_FLAG(__FLAG__)
Check PWR flag is set or not.
HAL_StatusTypeDef
HAL Status structures definition
HAL_StatusTypeDef HAL_PWREx_EnableBkUpReg(void)
#define __HAL_PWR_OVERDRIVE_DISABLE()
HAL_StatusTypeDef HAL_PWREx_EnableOverDrive(void)
#define PLL_TIMEOUT_VALUE
void HAL_PWREx_EnableLowRegulatorLowVoltage(void)
#define __HAL_PWR_OVERDRIVESWITCHING_ENABLE()
Macros to enable or disable the Over drive switching.
#define IS_PWR_REGULATOR_VOLTAGE(VOLTAGE)
uint32_t HAL_GetTick(void)
Provides a tick value in millisecond.
#define IS_PWR_STOP_ENTRY(ENTRY)
#define PWR_SLEEPENTRY_WFI
#define __HAL_RCC_PLL_DISABLE()
HAL_StatusTypeDef HAL_PWREx_DisableBkUpReg(void)
HAL_StatusTypeDef HAL_PWREx_DisableOverDrive(void)
HAL_StatusTypeDef HAL_PWREx_EnterUnderDriveSTOPMode(uint32_t Regulator, uint8_t STOPEntry)
void HAL_PWREx_EnableFlashPowerDown(void)
#define IS_PWR_REGULATOR_UNDERDRIVE(REGULATOR)
#define __HAL_RCC_PWR_CLK_ENABLE()
#define __HAL_RCC_PLL_ENABLE()
Macros to enable or disable the main PLL.
void HAL_PWREx_DisableFlashPowerDown(void)
#define __HAL_PWR_CLEAR_ODRUDR_FLAG()
Clear the Under-Drive Ready flag.
void HAL_PWREx_DisableMainRegulatorLowVoltage(void)
#define __HAL_RCC_GET_FLAG(__FLAG__)
uint32_t HAL_PWREx_GetVoltageRange(void)
void HAL_PWREx_DisableLowRegulatorLowVoltage(void)
#define __HAL_PWR_UNDERDRIVE_ENABLE()
Macros to enable or disable the Under drive mode.
#define __HAL_PWR_OVERDRIVESWITCHING_DISABLE()
#define __HAL_PWR_OVERDRIVE_ENABLE()
Macros to enable or disable the Over drive mode.
#define __HAL_RCC_GET_SYSCLK_SOURCE()
Macro to get the clock source used as system clock.
void HAL_PWREx_EnableMainRegulatorLowVoltage(void)
HAL_StatusTypeDef HAL_PWREx_ControlVoltageScaling(uint32_t VoltageScaling)
#define __WFE
Wait For Event.
#define __HAL_PWR_VOLTAGESCALING_CONFIG(__REGULATOR__)
macros configure the main internal regulator output voltage.
#define __WFI
Wait For Interrupt.
This file contains all the functions prototypes for the HAL module driver.
#define SCB_SCR_SLEEPDEEP_Msk