STM32L486xx HAL User Manual
Functions
Initialization and de-initialization functions
PWR Exported Functions

Initialization and de-initialization functions. More...

Functions

void HAL_PWR_DeInit (void)
 Deinitialize the HAL PWR peripheral registers to their default reset values.
void HAL_PWR_EnableBkUpAccess (void)
 Enable access to the backup domain (RTC registers, RTC backup data registers).
void HAL_PWR_DisableBkUpAccess (void)
 Disable access to the backup domain (RTC registers, RTC backup data registers).

Detailed Description

Initialization and de-initialization functions.

 ===============================================================================
              ##### Initialization and de-initialization functions #####
 ===============================================================================
    [..]


Function Documentation

void HAL_PWR_DeInit ( void  )

Deinitialize the HAL PWR peripheral registers to their default reset values.

Return values:
None

Definition at line 103 of file stm32l4xx_hal_pwr.c.

References __HAL_RCC_PWR_FORCE_RESET, and __HAL_RCC_PWR_RELEASE_RESET.

void HAL_PWR_DisableBkUpAccess ( void  )

Disable access to the backup domain (RTC registers, RTC backup data registers).

Return values:
None

Definition at line 131 of file stm32l4xx_hal_pwr.c.

Referenced by HAL_RCCEx_DisableLSCO(), and HAL_RCCEx_EnableLSCO().

void HAL_PWR_EnableBkUpAccess ( void  )

Enable access to the backup domain (RTC registers, RTC backup data registers).

Note:
After reset, the backup domain is protected against possible unwanted write accesses.
RTCSEL that sets the RTC clock source selection is in the RTC back-up domain. In order to set or modify the RTC clock, the backup domain access must be disabled.
LSEON bit that switches on and off the LSE crystal belongs as well to the back-up domain.
Return values:
None

Definition at line 121 of file stm32l4xx_hal_pwr.c.

Referenced by HAL_RCCEx_DisableLSCO(), and HAL_RCCEx_EnableLSCO().