STM32H735xx HAL User Manual
|
Power supply control functions. More...
Functions | |
HAL_StatusTypeDef | HAL_PWREx_ConfigSupply (uint32_t SupplySource) |
Configure the system Power Supply. | |
uint32_t | HAL_PWREx_GetSupplyConfig (void) |
Get the power supply configuration. | |
HAL_StatusTypeDef | HAL_PWREx_ControlVoltageScaling (uint32_t VoltageScaling) |
Configure the main internal regulator output voltage. | |
uint32_t | HAL_PWREx_GetVoltageRange (void) |
Get the main internal regulator output voltage. | |
HAL_StatusTypeDef | HAL_PWREx_ControlStopModeVoltageScaling (uint32_t VoltageScaling) |
Configure the main internal regulator output voltage in STOP mode. | |
uint32_t | HAL_PWREx_GetStopModeVoltageRange (void) |
Get the main internal regulator output voltage in STOP mode. |
Power supply control functions.
=============================================================================== ##### Power supply control functions ##### =============================================================================== [..] (#) When the system is powered on, the POR monitors VDD supply. Once VDD is above the POR threshold level, the voltage regulator is enabled in the default supply configuration: (+) The Voltage converter output level is set at 1V0 in accordance with the VOS3 level configured in PWR (D3/SRD) domain control register (PWR_D3CR/PWR_SRDCR). (+) The system is kept in reset mode as long as VCORE is not ok. (+) Once VCORE is ok, the system is taken out of reset and the HSI oscillator is enabled. (+) Once the oscillator is stable, the system is initialized: Flash memory and option bytes are loaded and the CPU starts in Run* mode. (+) The software shall then initialize the system including supply configuration programming using the HAL_PWREx_ConfigSupply(). (+) Once the supply configuration has been configured, the HAL_PWREx_ConfigSupply() function checks the ACTVOSRDY bit in PWR control status register 1 (PWR_CSR1) to guarantee a valid voltage levels: (++) As long as ACTVOSRDY indicates that voltage levels are invalid, the system is in limited Run* mode, write accesses to the RAMs are not permitted and VOS shall not be changed. (++) Once ACTVOSRDY indicates that voltage levels are valid, the system is in normal Run mode, write accesses to RAMs are allowed and VOS can be changed.
HAL_StatusTypeDef HAL_PWREx_ConfigSupply | ( | uint32_t | SupplySource | ) |
Configure the system Power Supply.
SupplySource | : Specifies the Power Supply source to set after a system startup. This parameter can be one of the following values :
|
HAL | status. |
Definition at line 313 of file stm32h7xx_hal_pwr_ex.c.
References __HAL_PWR_GET_FLAG, assert_param, HAL_GetTick(), IS_PWR_SUPPLY, PWR_FLAG_ACTVOSRDY, PWR_FLAG_SETTING_DELAY, PWR_FLAG_SMPSEXTRDY, PWR_SMPS_1V8_SUPPLIES_EXT, PWR_SMPS_1V8_SUPPLIES_EXT_AND_LDO, PWR_SMPS_2V5_SUPPLIES_EXT, PWR_SMPS_2V5_SUPPLIES_EXT_AND_LDO, and PWR_SUPPLY_CONFIG_MASK.
HAL_StatusTypeDef HAL_PWREx_ControlStopModeVoltageScaling | ( | uint32_t | VoltageScaling | ) |
Configure the main internal regulator output voltage in STOP mode.
VoltageScaling | : Specifies the regulator output voltage when the system enters Stop mode to achieve a tradeoff between performance and power consumption. This parameter can be one of the following values:
|
HAL | Status. |
Definition at line 538 of file stm32h7xx_hal_pwr_ex.c.
References assert_param, and IS_PWR_STOP_MODE_REGULATOR_VOLTAGE.
HAL_StatusTypeDef HAL_PWREx_ControlVoltageScaling | ( | uint32_t | VoltageScaling | ) |
Configure the main internal regulator output voltage.
VoltageScaling | : Specifies the regulator output voltage to achieve a tradeoff between performance and power consumption. This parameter can be one of the following values :
|
HAL | Status |
Definition at line 413 of file stm32h7xx_hal_pwr_ex.c.
References __HAL_PWR_GET_FLAG, assert_param, HAL_GetTick(), IS_PWR_REGULATOR_VOLTAGE, PWR_FLAG_ACTVOSRDY, PWR_FLAG_SETTING_DELAY, PWR_REGULATOR_VOLTAGE_SCALE0, and PWR_REGULATOR_VOLTAGE_SCALE1.
uint32_t HAL_PWREx_GetStopModeVoltageRange | ( | void | ) |
Get the main internal regulator output voltage in STOP mode.
The | actual applied VOS selection. |
Definition at line 553 of file stm32h7xx_hal_pwr_ex.c.
uint32_t HAL_PWREx_GetSupplyConfig | ( | void | ) |
Get the power supply configuration.
The | supply configuration. |
Definition at line 385 of file stm32h7xx_hal_pwr_ex.c.
References PWR_SUPPLY_CONFIG_MASK.
uint32_t HAL_PWREx_GetVoltageRange | ( | void | ) |
Get the main internal regulator output voltage.
Reflecting the last VOS value applied to the PMU.
The | current applied VOS selection. |
Definition at line 512 of file stm32h7xx_hal_pwr_ex.c.