|
STM32F479xx HAL User Manual
|
Peripheral Extended features functions. More...
Functions | |
| HAL_StatusTypeDef | HAL_PWREx_EnableBkUpReg (void) |
| Enables the Backup Regulator. | |
| HAL_StatusTypeDef | HAL_PWREx_DisableBkUpReg (void) |
| Disables the Backup Regulator. | |
| void | HAL_PWREx_EnableFlashPowerDown (void) |
| Enables the Flash Power Down in Stop mode. | |
| void | HAL_PWREx_DisableFlashPowerDown (void) |
| Disables the Flash Power Down in Stop mode. | |
| uint32_t | HAL_PWREx_GetVoltageRange (void) |
| Return Voltage Scaling Range. | |
| HAL_StatusTypeDef | HAL_PWREx_ControlVoltageScaling (uint32_t VoltageScaling) |
| Configures the main internal regulator output voltage. | |
| HAL_StatusTypeDef | HAL_PWREx_EnableOverDrive (void) |
| Activates the Over-Drive mode. | |
| HAL_StatusTypeDef | HAL_PWREx_DisableOverDrive (void) |
| Deactivates the Over-Drive mode. | |
| HAL_StatusTypeDef | HAL_PWREx_EnterUnderDriveSTOPMode (uint32_t Regulator, uint8_t STOPEntry) |
| Enters in Under-Drive STOP mode. | |
Peripheral Extended features functions.
===============================================================================
##### Peripheral extended features functions #####
===============================================================================
*** Main and Backup Regulators configuration ***
================================================
[..]
(+) The backup domain includes 4 Kbytes of backup SRAM accessible only from
the CPU, and address in 32-bit, 16-bit or 8-bit mode. Its content is
retained even in Standby or VBAT mode when the low power backup regulator
is enabled. It can be considered as an internal EEPROM when VBAT is
always present. You can use the HAL_PWREx_EnableBkUpReg() function to
enable the low power backup regulator.
(+) When the backup domain is supplied by VDD (analog switch connected to VDD)
the backup SRAM is powered from VDD which replaces the VBAT power supply to
save battery life.
(+) The backup SRAM is not mass erased by a tamper event. It is read
protected to prevent confidential data, such as cryptographic private
key, from being accessed. The backup SRAM can be erased only through
the Flash interface when a protection level change from level 1 to
level 0 is requested.
-@- Refer to the description of Read protection (RDP) in the Flash
programming manual.
(+) The main internal regulator can be configured to have a tradeoff between
performance and power consumption when the device does not operate at
the maximum frequency. This is done through __HAL_PWR_MAINREGULATORMODE_CONFIG()
macro which configure VOS bit in PWR_CR register
Refer to the product datasheets for more details.
*** FLASH Power Down configuration ****
=======================================
[..]
(+) By setting the FPDS bit in the PWR_CR register by using the
HAL_PWREx_EnableFlashPowerDown() function, the Flash memory also enters power
down mode when the device enters Stop mode. When the Flash memory
is in power down mode, an additional startup delay is incurred when
waking up from Stop mode.
(+) For STM32F42xxx/43xxx/446xx/469xx/479xx Devices, the scale can be modified only when the PLL
is OFF and the HSI or HSE clock source is selected as system clock.
The new value programmed is active only when the PLL is ON.
When the PLL is OFF, the voltage scale 3 is automatically selected.
Refer to the datasheets for more details.
*** Over-Drive and Under-Drive configuration ****
=================================================
[..]
(+) For STM32F42xxx/43xxx/446xx/469xx/479xx Devices, in Run mode: the main regulator has
2 operating modes available:
(++) Normal mode: The CPU and core logic operate at maximum frequency at a given
voltage scaling (scale 1, scale 2 or scale 3)
(++) Over-drive mode: This mode allows the CPU and the core logic to operate at a
higher frequency than the normal mode for a given voltage scaling (scale 1,
scale 2 or scale 3). This mode is enabled through HAL_PWREx_EnableOverDrive() function and
disabled by HAL_PWREx_DisableOverDrive() function, to enter or exit from Over-drive mode please follow
the sequence described in Reference manual.
(+) For STM32F42xxx/43xxx/446xx/469xx/479xx Devices, in Stop mode: the main regulator or low power regulator
supplies a low power voltage to the 1.2V domain, thus preserving the content of registers
and internal SRAM. 2 operating modes are available:
(++) Normal mode: the 1.2V domain is preserved in nominal leakage mode. This mode is only
available when the main regulator or the low power regulator is used in Scale 3 or
low voltage mode.
(++) Under-drive mode: the 1.2V domain is preserved in reduced leakage mode. This mode is only
available when the main regulator or the low power regulator is in low voltage mode.
| HAL_StatusTypeDef HAL_PWREx_ControlVoltageScaling | ( | uint32_t | VoltageScaling | ) |
Configures 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 290 of file stm32f4xx_hal_pwr_ex.c.
References __HAL_PWR_GET_FLAG, __HAL_PWR_VOLTAGESCALING_CONFIG, __HAL_RCC_GET_FLAG, __HAL_RCC_GET_SYSCLK_SOURCE, __HAL_RCC_PLL_DISABLE, __HAL_RCC_PLL_ENABLE, __HAL_RCC_PWR_CLK_ENABLE, assert_param, HAL_GetTick(), IS_PWR_VOLTAGE_SCALING_RANGE, PLL_TIMEOUT_VALUE, PWR_FLAG_VOSRDY, PWR_VOSRDY_TIMEOUT_VALUE, and RCC_FLAG_PLLRDY.
| HAL_StatusTypeDef HAL_PWREx_DisableBkUpReg | ( | void | ) |
Disables the Backup Regulator.
| HAL | status |
Definition at line 167 of file stm32f4xx_hal_pwr_ex.c.
References __HAL_PWR_GET_FLAG, CSR_BRE_BB, HAL_GetTick(), PWR_BKPREG_TIMEOUT_VALUE, and PWR_FLAG_BRR.
| void HAL_PWREx_DisableFlashPowerDown | ( | void | ) |
Disables the Flash Power Down in Stop mode.
| None |
Definition at line 200 of file stm32f4xx_hal_pwr_ex.c.
References CR_FPDS_BB.
| HAL_StatusTypeDef HAL_PWREx_DisableOverDrive | ( | void | ) |
Deactivates the Over-Drive mode.
| HAL | status |
Definition at line 462 of file stm32f4xx_hal_pwr_ex.c.
References __HAL_PWR_GET_FLAG, __HAL_PWR_OVERDRIVE_DISABLE, __HAL_PWR_OVERDRIVESWITCHING_DISABLE, __HAL_RCC_PWR_CLK_ENABLE, HAL_GetTick(), PWR_FLAG_ODRDY, PWR_FLAG_ODSWRDY, and PWR_OVERDRIVE_TIMEOUT_VALUE.
| HAL_StatusTypeDef HAL_PWREx_EnableBkUpReg | ( | void | ) |
Enables the Backup Regulator.
| HAL | status |
Definition at line 143 of file stm32f4xx_hal_pwr_ex.c.
References __HAL_PWR_GET_FLAG, CSR_BRE_BB, HAL_GetTick(), PWR_BKPREG_TIMEOUT_VALUE, and PWR_FLAG_BRR.
| void HAL_PWREx_EnableFlashPowerDown | ( | void | ) |
Enables the Flash Power Down in Stop mode.
| None |
Definition at line 191 of file stm32f4xx_hal_pwr_ex.c.
References CR_FPDS_BB.
| HAL_StatusTypeDef HAL_PWREx_EnableOverDrive | ( | void | ) |
Activates the Over-Drive mode.
| HAL | status |
Definition at line 415 of file stm32f4xx_hal_pwr_ex.c.
References __HAL_PWR_GET_FLAG, __HAL_PWR_OVERDRIVE_ENABLE, __HAL_PWR_OVERDRIVESWITCHING_ENABLE, __HAL_RCC_PWR_CLK_ENABLE, HAL_GetTick(), PWR_FLAG_ODRDY, PWR_FLAG_ODSWRDY, and PWR_OVERDRIVE_TIMEOUT_VALUE.
| HAL_StatusTypeDef HAL_PWREx_EnterUnderDriveSTOPMode | ( | uint32_t | Regulator, |
| uint8_t | STOPEntry | ||
| ) |
Enters in Under-Drive STOP mode.
| Regulator | specifies the regulator state in STOP mode. This parameter can be one of the following values:
|
| STOPEntry | specifies if STOP mode in entered with WFI or WFE instruction. This parameter can be one of the following values:
|
| None |
Definition at line 538 of file stm32f4xx_hal_pwr_ex.c.
References __HAL_PWR_CLEAR_ODRUDR_FLAG, __HAL_PWR_UNDERDRIVE_ENABLE, __HAL_RCC_PWR_CLK_ENABLE, assert_param, IS_PWR_REGULATOR_UNDERDRIVE, IS_PWR_STOP_ENTRY, and PWR_SLEEPENTRY_WFI.
| uint32_t HAL_PWREx_GetVoltageRange | ( | void | ) |
Return Voltage Scaling Range.
| The | configured scale for the regulator voltage(VOS bit field). The returned value can be one of the following:
|
Definition at line 213 of file stm32f4xx_hal_pwr_ex.c.
1.7.6.1