Martin Johnson / STM32F3-Discovery

Dependents:   Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more

Embed: (wiki syntax)

« Back to documentation index

Backup Domain Access function

Backup Domain Access function
[PWR_Private_Functions]

Backup Domain Access function. More...

Functions

void PWR_DeInit (void)
 Deinitializes the PWR peripheral registers to their default reset values.
void PWR_BackupAccessCmd (FunctionalState NewState)
 Enables or disables access to the RTC and backup registers.

Detailed Description

Backup Domain Access 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.


Function Documentation

void PWR_BackupAccessCmd ( FunctionalState  NewState )

Enables or disables access to the RTC and backup registers.

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:
None

Definition at line 114 of file stm32f30x_pwr.c.

void PWR_DeInit ( void   )

Deinitializes the PWR peripheral registers to their default reset values.

Parameters:
None
Return values:
None

Definition at line 100 of file stm32f30x_pwr.c.