stm32f10x_pwr.h
Go to the documentation of this file.
1 
23 /* Define to prevent recursive inclusion -------------------------------------*/
24 #ifndef __STM32F10x_PWR_H
25 #define __STM32F10x_PWR_H
26 
27 #ifdef __cplusplus
28  extern "C" {
29 #endif
30 
31 /* Includes ------------------------------------------------------------------*/
32 #include "stm32f10x.h"
33 
58 #define PWR_PVDLevel_2V2 ((uint32_t)0x00000000)
59 #define PWR_PVDLevel_2V3 ((uint32_t)0x00000020)
60 #define PWR_PVDLevel_2V4 ((uint32_t)0x00000040)
61 #define PWR_PVDLevel_2V5 ((uint32_t)0x00000060)
62 #define PWR_PVDLevel_2V6 ((uint32_t)0x00000080)
63 #define PWR_PVDLevel_2V7 ((uint32_t)0x000000A0)
64 #define PWR_PVDLevel_2V8 ((uint32_t)0x000000C0)
65 #define PWR_PVDLevel_2V9 ((uint32_t)0x000000E0)
66 #define IS_PWR_PVD_LEVEL(LEVEL) (((LEVEL) == PWR_PVDLevel_2V2) || ((LEVEL) == PWR_PVDLevel_2V3)|| \
67  ((LEVEL) == PWR_PVDLevel_2V4) || ((LEVEL) == PWR_PVDLevel_2V5)|| \
68  ((LEVEL) == PWR_PVDLevel_2V6) || ((LEVEL) == PWR_PVDLevel_2V7)|| \
69  ((LEVEL) == PWR_PVDLevel_2V8) || ((LEVEL) == PWR_PVDLevel_2V9))
70 
78 #define PWR_Regulator_ON ((uint32_t)0x00000000)
79 #define PWR_Regulator_LowPower ((uint32_t)0x00000001)
80 #define IS_PWR_REGULATOR(REGULATOR) (((REGULATOR) == PWR_Regulator_ON) || \
81  ((REGULATOR) == PWR_Regulator_LowPower))
82 
90 #define PWR_STOPEntry_WFI ((uint8_t)0x01)
91 #define PWR_STOPEntry_WFE ((uint8_t)0x02)
92 #define IS_PWR_STOP_ENTRY(ENTRY) (((ENTRY) == PWR_STOPEntry_WFI) || ((ENTRY) == PWR_STOPEntry_WFE))
93 
102 #define PWR_FLAG_WU ((uint32_t)0x00000001)
103 #define PWR_FLAG_SB ((uint32_t)0x00000002)
104 #define PWR_FLAG_PVDO ((uint32_t)0x00000004)
105 #define IS_PWR_GET_FLAG(FLAG) (((FLAG) == PWR_FLAG_WU) || ((FLAG) == PWR_FLAG_SB) || \
106  ((FLAG) == PWR_FLAG_PVDO))
107 
108 #define IS_PWR_CLEAR_FLAG(FLAG) (((FLAG) == PWR_FLAG_WU) || ((FLAG) == PWR_FLAG_SB))
109 
129 void PWR_DeInit(void);
130 void PWR_BackupAccessCmd(FunctionalState NewState);
131 void PWR_PVDCmd(FunctionalState NewState);
132 void PWR_PVDLevelConfig(uint32_t PWR_PVDLevel);
133 void PWR_WakeUpPinCmd(FunctionalState NewState);
134 void PWR_EnterSTOPMode(uint32_t PWR_Regulator, uint8_t PWR_STOPEntry);
135 void PWR_EnterSTANDBYMode(void);
136 FlagStatus PWR_GetFlagStatus(uint32_t PWR_FLAG);
137 void PWR_ClearFlag(uint32_t PWR_FLAG);
138 
139 #ifdef __cplusplus
140 }
141 #endif
142 
143 #endif /* __STM32F10x_PWR_H */
144 
156 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
FlagStatus
Definition: stm32f4xx.h:706
void PWR_WakeUpPinCmd(FunctionalState NewState)
Enables or disables the WakeUp Pin functionality.
FunctionalState
Definition: stm32f4xx.h:708
void PWR_BackupAccessCmd(FunctionalState NewState)
Enables or disables access to the backup domain (RTC registers, RTC backup data registers and backup ...
void PWR_DeInit(void)
Deinitializes the PWR peripheral registers to their default reset values.
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.
void PWR_PVDLevelConfig(uint32_t PWR_PVDLevel)
Configures the voltage threshold detected by the Power Voltage Detector(PVD).
void PWR_PVDCmd(FunctionalState NewState)
Enables or disables the Power Voltage Detector(PVD).
CMSIS Cortex-M3 Device Peripheral Access Layer Header File. This file contains all the peripheral reg...


rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:25