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

Initialization and de-initialization functions. More...

Functions

void HAL_PWR_DeInit (void)
 Deinitializes the PWR peripheral registers to their default reset values.
void HAL_PWR_EnableBkUpAccess (void)
 Enables access to the backup domain (RTC registers, RTC backup data registers ).
void HAL_PWR_DisableBkUpAccess (void)
 Disables access to the backup domain (RTC registers, RTC backup data registers).

Detailed Description

Initialization and de-initialization functions.

 ===============================================================================
              ##### Initialization and de-initialization functions #####
 ===============================================================================
    [..]
      After reset, the backup domain (RTC registers, RTC backup data
      registers) is protected against possible unwanted
      write accesses.
      To enable access to the RTC Domain and RTC registers, proceed as follows:
        (+) Enable the Power Controller (PWR) APB1 interface clock using the
            __HAL_RCC_PWR_CLK_ENABLE() macro.
        (+) Enable access to RTC domain using the HAL_PWR_EnableBkUpAccess() function.


Function Documentation

void HAL_PWR_DeInit ( void  )

Deinitializes the PWR peripheral registers to their default reset values.

Return values:
None

Definition at line 156 of file stm32f1xx_hal_pwr.c.

References __HAL_RCC_PWR_FORCE_RESET, and __HAL_RCC_PWR_RELEASE_RESET.

void HAL_PWR_DisableBkUpAccess ( void  )

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

Note:
If the HSE divided by 128 is used as the RTC clock, the Backup Domain Access should be kept enabled.
Return values:
None

Definition at line 182 of file stm32f1xx_hal_pwr.c.

References CR_DBP_BB.

void HAL_PWR_EnableBkUpAccess ( void  )

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

Note:
If the HSE divided by 128 is used as the RTC clock, the Backup Domain Access should be kept enabled.
Return values:
None

Definition at line 169 of file stm32f1xx_hal_pwr.c.

References CR_DBP_BB.