Backup Domain Access function.
More...
Backup Domain Access function.
===============================================================================
##### Backup Domain Access function #####
===============================================================================
[..]
After reset, the backup domain (RTC registers, RTC backup data
registers and backup SRAM) 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
RCC_APB1PeriphClockCmd() function.
(+) Enable access to RTC domain using the PWR_BackupAccessCmd() function.
==============================================================================
##### Backup Domain Access function #####
==============================================================================
[..] After reset, the Backup Domain Registers (RCC BDCR Register, RTC registers
and RTC backup registers) are protected against possible stray write accesses.
[..] To enable access to Backup domain use the PWR_BackupAccessCmd(ENABLE) function.
Enables or disables access to the backup domain (RTC registers, RTC backup data registers and backup SRAM).
Enables or disables access to the RTC and backup registers.
- Note
- If the HSE divided by 2, 3, ..31 is used as the RTC clock, the Backup Domain Access should be kept enabled.
- Parameters
-
NewState | new state of the access to the backup domain. This parameter can be: ENABLE or DISABLE. |
- Return values
-
- Note
- If the HSE divided by 32 is used as the RTC clock, the Backup Domain Access should be kept enabled.
- Parameters
-
NewState | new state of the access to the RTC and backup registers. This parameter can be: ENABLE or DISABLE. |
- Return values
-
Definition at line 142 of file stm32f4xx_pwr.c.
Deinitializes the PWR peripheral registers to their default reset values.
- Parameters
-
- Return values
-
Definition at line 127 of file stm32f4xx_pwr.c.