Hal_Pwr_Deinit; Hal_Pwr_Enablebkupaccess; Hal_Pwr_Disablebkupaccess; Detailed Description Of Functions - ST STM32F2 User Manual

Description of stm32f2 hal and low layer drivers
Hide thumbs Also See for STM32F2:
Table of Contents

Advertisement

HAL PWR Generic Driver
This section contains the following APIs:
HAL_PWR_ConfigPVD()
HAL_PWR_EnablePVD()
HAL_PWR_DisablePVD()
HAL_PWR_EnableWakeUpPin()
HAL_PWR_DisableWakeUpPin()
HAL_PWR_EnterSLEEPMode()
HAL_PWR_EnterSTOPMode()
HAL_PWR_EnterSTANDBYMode()
HAL_PWR_PVD_IRQHandler()
HAL_PWR_PVDCallback()
HAL_PWR_EnableSleepOnExit()
HAL_PWR_DisableSleepOnExit()
HAL_PWR_EnableSEVOnPend()
HAL_PWR_DisableSEVOnPend()
34.2.3

Detailed description of functions

HAL_PWR_DeInit

Function name
Function description
Return values

HAL_PWR_EnableBkUpAccess

Function name
Function description
Return values
Notes

HAL_PWR_DisableBkUpAccess

Function name
Function description
Return values
406/1371
To wake up from the Stop mode with an RTC alarm event, it is necessary to
configure the RTC to generate the RTC alarm using the
HAL_RTC_SetAlarm_IT() function.
To wake up from the Stop mode with an RTC Tamper or time stamp event, it is
necessary to configure the RTC to detect the tamper or time stamp event using
the HAL_RTCEx_SetTimeStamp_IT() or HAL_RTCEx_SetTamper_IT() functions.
To wake up from the Stop mode with an RTC Wake-up event, it is necessary to
configure the RTC to generate the RTC Wake-up event using the
HAL_RTCEx_SetWakeUpTimer_IT() function.
void HAL_PWR_DeInit (void )
Deinitializes the HAL PWR peripheral registers to their default
reset values.
None:
void HAL_PWR_EnableBkUpAccess (void )
Enables access to the backup domain (RTC registers, RTC
backup data registers and backup SRAM).
None:
If the HSE divided by 2, 3, ..31 is used as the RTC clock, the
Backup Domain Access should be kept enabled.
void HAL_PWR_DisableBkUpAccess (void )
Disables access to the backup domain (RTC registers, RTC
backup data registers and backup SRAM).
None:
DocID028236 Rev 2
UM1940

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F2 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF