STM32F10x Standard Peripherals Library  3.5.0
/opt/STM32F10x_StdPeriph_Lib_V3.5.0/Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_pwr.c File Reference

This file provides all the PWR firmware functions. More...

#include "stm32f10x_pwr.h"
#include "stm32f10x_rcc.h"

Go to the source code of this file.

Defines

#define PWR_OFFSET   (PWR_BASE - PERIPH_BASE)
#define CR_OFFSET   (PWR_OFFSET + 0x00)
#define DBP_BitNumber   0x08
#define CR_DBP_BB   (PERIPH_BB_BASE + (CR_OFFSET * 32) + (DBP_BitNumber * 4))
#define PVDE_BitNumber   0x04
#define CR_PVDE_BB   (PERIPH_BB_BASE + (CR_OFFSET * 32) + (PVDE_BitNumber * 4))
#define CSR_OFFSET   (PWR_OFFSET + 0x04)
#define EWUP_BitNumber   0x08
#define CSR_EWUP_BB   (PERIPH_BB_BASE + (CSR_OFFSET * 32) + (EWUP_BitNumber * 4))
#define CR_DS_MASK   ((uint32_t)0xFFFFFFFC)
#define CR_PLS_MASK   ((uint32_t)0xFFFFFF1F)

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.
void PWR_PVDCmd (FunctionalState NewState)
 Enables or disables the Power Voltage Detector(PVD).
void PWR_PVDLevelConfig (uint32_t PWR_PVDLevel)
 Configures the voltage threshold detected by the Power Voltage Detector(PVD).
void PWR_WakeUpPinCmd (FunctionalState NewState)
 Enables or disables the WakeUp Pin functionality.
void PWR_EnterSTOPMode (uint32_t PWR_Regulator, uint8_t PWR_STOPEntry)
 Enters STOP mode.
void PWR_EnterSTANDBYMode (void)
 Enters STANDBY mode.
FlagStatus PWR_GetFlagStatus (uint32_t PWR_FLAG)
 Checks whether the specified PWR flag is set or not.
void PWR_ClearFlag (uint32_t PWR_FLAG)
 Clears the PWR's pending flags.

Detailed Description

This file provides all the PWR firmware functions.

Author:
MCD Application Team
Version:
V3.5.0
Date:
11-March-2011
Attention:

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

© COPYRIGHT 2011 STMicroelectronics

Definition in file stm32f10x_pwr.c.