34#ifdef HAL_PWR_MODULE_ENABLED
41#define PWR_OVERDRIVE_TIMEOUT_VALUE 1000U
42#define PWR_UDERDRIVE_TIMEOUT_VALUE 1000U
43#define PWR_BKPREG_TIMEOUT_VALUE 1000U
44#define PWR_VOSRDY_TIMEOUT_VALUE 1000U
143 uint32_t tickstart = 0U;
145 *(__IO uint32_t *)
CSR_BRE_BB = (uint32_t)ENABLE;
167 uint32_t tickstart = 0U;
169 *(__IO uint32_t *)
CSR_BRE_BB = (uint32_t)DISABLE;
191 *(__IO uint32_t *)
CR_FPDS_BB = (uint32_t)ENABLE;
200 *(__IO uint32_t *)
CR_FPDS_BB = (uint32_t)DISABLE;
213 return (PWR->CR & PWR_CR_VOS);
216#if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx)
234 uint32_t tickstart = 0U;
257#elif defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || \
258 defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) || \
259 defined(STM32F410Rx) || defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F469xx) || \
260 defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || \
261 defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx)
290 uint32_t tickstart = 0U;
350#if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) ||\
351 defined(STM32F411xE) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) ||\
352 defined(STM32F413xx) || defined(STM32F423xx)
359void HAL_PWREx_EnableMainRegulatorLowVoltage(
void)
370void HAL_PWREx_DisableMainRegulatorLowVoltage(
void)
381void HAL_PWREx_EnableLowRegulatorLowVoltage(
void)
392void HAL_PWREx_DisableLowRegulatorLowVoltage(
void)
400#if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) ||\
401 defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx)
415 uint32_t tickstart = 0U;
462 uint32_t tickstart = 0U;
538 uint32_t tmpreg1 = 0U;
556 tmpreg1 &= (uint32_t)~(PWR_CR_PDDS | PWR_CR_LPDS | PWR_CR_LPUDS | PWR_CR_MRUDS);
559 tmpreg1 |= Regulator;
565 SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
579 SCB->SCR &= (uint32_t)~((uint32_t)SCB_SCR_SLEEPDEEP_Msk);
uint32_t HAL_GetTick(void)
Provides a tick value in millisecond.
#define __HAL_PWR_OVERDRIVE_DISABLE()
#define __HAL_PWR_VOLTAGESCALING_CONFIG(__REGULATOR__)
macros configure the main internal regulator output voltage.
#define __HAL_PWR_OVERDRIVESWITCHING_ENABLE()
Macros to enable or disable the Over drive switching.
#define __HAL_PWR_CLEAR_ODRUDR_FLAG()
Clear the Under-Drive Ready flag.
#define __HAL_PWR_OVERDRIVE_ENABLE()
Macros to enable or disable the Over drive mode.
#define __HAL_PWR_OVERDRIVESWITCHING_DISABLE()
#define __HAL_PWR_UNDERDRIVE_ENABLE()
Macros to enable or disable the Under drive mode.
void HAL_PWREx_DisableFlashPowerDown(void)
Disables the Flash Power Down in Stop mode.
HAL_StatusTypeDef HAL_PWREx_ControlVoltageScaling(uint32_t VoltageScaling)
Configures the main internal regulator output voltage.
HAL_StatusTypeDef HAL_PWREx_EnableBkUpReg(void)
Enables the Backup Regulator.
uint32_t HAL_PWREx_GetVoltageRange(void)
Return Voltage Scaling Range.
HAL_StatusTypeDef HAL_PWREx_EnterUnderDriveSTOPMode(uint32_t Regulator, uint8_t STOPEntry)
Enters in Under-Drive STOP mode.
HAL_StatusTypeDef HAL_PWREx_DisableOverDrive(void)
Deactivates the Over-Drive mode.
void HAL_PWREx_EnableFlashPowerDown(void)
Enables the Flash Power Down in Stop mode.
HAL_StatusTypeDef HAL_PWREx_EnableOverDrive(void)
Activates the Over-Drive mode.
HAL_StatusTypeDef HAL_PWREx_DisableBkUpReg(void)
Disables the Backup Regulator.
#define IS_PWR_VOLTAGE_SCALING_RANGE(VOLTAGE)
#define IS_PWR_REGULATOR_UNDERDRIVE(REGULATOR)
#define PWR_BKPREG_TIMEOUT_VALUE
#define PWR_OVERDRIVE_TIMEOUT_VALUE
#define PWR_VOSRDY_TIMEOUT_VALUE
#define __HAL_PWR_GET_FLAG(__FLAG__)
Check PWR flag is set or not.
#define IS_PWR_STOP_ENTRY(ENTRY)
#define PWR_SLEEPENTRY_WFI
#define PLL_TIMEOUT_VALUE
#define __HAL_RCC_PWR_CLK_ENABLE()
#define __HAL_RCC_GET_FLAG(__FLAG__)
#define __HAL_RCC_GET_SYSCLK_SOURCE()
Macro to get the clock source used as system clock.
#define __HAL_RCC_PLL_DISABLE()
#define __HAL_RCC_PLL_ENABLE()
Macros to enable or disable the main PLL.
#define assert_param(expr)
This file contains all the functions prototypes for the HAL module driver.
HAL_StatusTypeDef
HAL Status structures definition