Backup Domain Access function.
More...
|
void | PWR_DeInit (void) |
| Deinitializes the PWR peripheral registers to their default reset values. More...
|
|
void | PWR_BackupAccessCmd (FunctionalState NewState) |
| Enables or disables access to the backup domain (RTC registers, RTC backup data registers and backup SRAM). 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.
void PWR_BackupAccessCmd |
( |
FunctionalState |
NewState | ) |
|
Enables or disables access to the backup domain (RTC registers, RTC backup data registers and backup SRAM).
- 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
-
Definition at line 149 of file stm32f4xx_pwr.c.
Deinitializes the PWR peripheral registers to their default reset values.
- Parameters
-
- Return values
-
Definition at line 134 of file stm32f4xx_pwr.c.