annotate f103c8/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h @ 4:ca4f5b55b391

working on pwm
author cin
date Wed, 18 Jan 2017 03:27:00 +0300
parents 0c59e7a7782a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
1 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
2 ******************************************************************************
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
3 * @file stm32f1xx_hal_pwr.h
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
4 * @author MCD Application Team
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
5 * @version V1.0.4
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
6 * @date 29-April-2016
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
7 * @brief Header file of PWR HAL module.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
8 ******************************************************************************
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
9 * @attention
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
10 *
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
11 * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
12 *
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
13 * Redistribution and use in source and binary forms, with or without modification,
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
14 * are permitted provided that the following conditions are met:
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
15 * 1. Redistributions of source code must retain the above copyright notice,
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
16 * this list of conditions and the following disclaimer.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
17 * 2. Redistributions in binary form must reproduce the above copyright notice,
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
18 * this list of conditions and the following disclaimer in the documentation
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
19 * and/or other materials provided with the distribution.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
21 * may be used to endorse or promote products derived from this software
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
22 * without specific prior written permission.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
23 *
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
34 *
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
35 ******************************************************************************
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
36 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
37
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
38 /* Define to prevent recursive inclusion -------------------------------------*/
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
39 #ifndef __STM32F1xx_HAL_PWR_H
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
40 #define __STM32F1xx_HAL_PWR_H
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
41
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
42 #ifdef __cplusplus
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
43 extern "C" {
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
44 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
45
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
46 /* Includes ------------------------------------------------------------------*/
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
47 #include "stm32f1xx_hal_def.h"
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
48
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
49 /** @addtogroup STM32F1xx_HAL_Driver
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
50 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
51 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
52
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
53 /** @addtogroup PWR
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
54 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
55 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
56
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
57 /* Exported types ------------------------------------------------------------*/
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
58
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
59 /** @defgroup PWR_Exported_Types PWR Exported Types
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
60 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
61 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
62
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
63 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
64 * @brief PWR PVD configuration structure definition
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
65 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
66 typedef struct
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
67 {
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
68 uint32_t PVDLevel; /*!< PVDLevel: Specifies the PVD detection level.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
69 This parameter can be a value of @ref PWR_PVD_detection_level */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
70
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
71 uint32_t Mode; /*!< Mode: Specifies the operating mode for the selected pins.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
72 This parameter can be a value of @ref PWR_PVD_Mode */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
73 }PWR_PVDTypeDef;
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
74
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
75
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
76 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
77 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
78 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
79
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
80
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
81 /* Internal constants --------------------------------------------------------*/
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
82
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
83 /** @addtogroup PWR_Private_Constants
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
84 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
85 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
86
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
87 #define PWR_EXTI_LINE_PVD ((uint32_t)0x00010000) /*!< External interrupt line 16 Connected to the PVD EXTI Line */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
88
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
89 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
90 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
91 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
92
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
93
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
94 /* Exported constants --------------------------------------------------------*/
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
95
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
96 /** @defgroup PWR_Exported_Constants PWR Exported Constants
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
97 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
98 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
99
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
100 /** @defgroup PWR_PVD_detection_level PWR PVD detection level
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
101 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
102 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
103 #define PWR_PVDLEVEL_0 PWR_CR_PLS_2V2
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
104 #define PWR_PVDLEVEL_1 PWR_CR_PLS_2V3
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
105 #define PWR_PVDLEVEL_2 PWR_CR_PLS_2V4
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
106 #define PWR_PVDLEVEL_3 PWR_CR_PLS_2V5
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
107 #define PWR_PVDLEVEL_4 PWR_CR_PLS_2V6
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
108 #define PWR_PVDLEVEL_5 PWR_CR_PLS_2V7
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
109 #define PWR_PVDLEVEL_6 PWR_CR_PLS_2V8
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
110 #define PWR_PVDLEVEL_7 PWR_CR_PLS_2V9
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
111
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
112 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
113 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
114 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
115
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
116 /** @defgroup PWR_PVD_Mode PWR PVD Mode
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
117 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
118 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
119 #define PWR_PVD_MODE_NORMAL ((uint32_t)0x00000000) /*!< basic mode is used */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
120 #define PWR_PVD_MODE_IT_RISING ((uint32_t)0x00010001) /*!< External Interrupt Mode with Rising edge trigger detection */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
121 #define PWR_PVD_MODE_IT_FALLING ((uint32_t)0x00010002) /*!< External Interrupt Mode with Falling edge trigger detection */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
122 #define PWR_PVD_MODE_IT_RISING_FALLING ((uint32_t)0x00010003) /*!< External Interrupt Mode with Rising/Falling edge trigger detection */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
123 #define PWR_PVD_MODE_EVENT_RISING ((uint32_t)0x00020001) /*!< Event Mode with Rising edge trigger detection */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
124 #define PWR_PVD_MODE_EVENT_FALLING ((uint32_t)0x00020002) /*!< Event Mode with Falling edge trigger detection */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
125 #define PWR_PVD_MODE_EVENT_RISING_FALLING ((uint32_t)0x00020003) /*!< Event Mode with Rising/Falling edge trigger detection */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
126
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
127 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
128 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
129 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
130
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
131
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
132 /** @defgroup PWR_WakeUp_Pins PWR WakeUp Pins
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
133 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
134 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
135
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
136 #define PWR_WAKEUP_PIN1 PWR_CSR_EWUP
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
137
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
138 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
139 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
140 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
141
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
142 /** @defgroup PWR_Regulator_state_in_SLEEP_STOP_mode PWR Regulator state in SLEEP/STOP mode
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
143 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
144 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
145 #define PWR_MAINREGULATOR_ON ((uint32_t)0x00000000)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
146 #define PWR_LOWPOWERREGULATOR_ON PWR_CR_LPDS
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
147
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
148 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
149 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
150 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
151
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
152 /** @defgroup PWR_SLEEP_mode_entry PWR SLEEP mode entry
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
153 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
154 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
155 #define PWR_SLEEPENTRY_WFI ((uint8_t)0x01)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
156 #define PWR_SLEEPENTRY_WFE ((uint8_t)0x02)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
157
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
158 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
159 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
160 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
161
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
162 /** @defgroup PWR_STOP_mode_entry PWR STOP mode entry
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
163 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
164 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
165 #define PWR_STOPENTRY_WFI ((uint8_t)0x01)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
166 #define PWR_STOPENTRY_WFE ((uint8_t)0x02)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
167
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
168 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
169 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
170 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
171
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
172 /** @defgroup PWR_Flag PWR Flag
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
173 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
174 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
175 #define PWR_FLAG_WU PWR_CSR_WUF
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
176 #define PWR_FLAG_SB PWR_CSR_SBF
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
177 #define PWR_FLAG_PVDO PWR_CSR_PVDO
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
178
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
179
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
180 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
181 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
182 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
183
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
184 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
185 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
186 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
187
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
188 /* Exported macro ------------------------------------------------------------*/
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
189 /** @defgroup PWR_Exported_Macros PWR Exported Macros
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
190 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
191 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
192
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
193 /** @brief Check PWR flag is set or not.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
194 * @param __FLAG__: specifies the flag to check.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
195 * This parameter can be one of the following values:
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
196 * @arg PWR_FLAG_WU: Wake Up flag. This flag indicates that a wakeup event
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
197 * was received from the WKUP pin or from the RTC alarm
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
198 * An additional wakeup event is detected if the WKUP pin is enabled
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
199 * (by setting the EWUP bit) when the WKUP pin level is already high.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
200 * @arg PWR_FLAG_SB: StandBy flag. This flag indicates that the system was
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
201 * resumed from StandBy mode.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
202 * @arg PWR_FLAG_PVDO: PVD Output. This flag is valid only if PVD is enabled
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
203 * by the HAL_PWR_EnablePVD() function. The PVD is stopped by Standby mode
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
204 * For this reason, this bit is equal to 0 after Standby or reset
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
205 * until the PVDE bit is set.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
206 * @retval The new state of __FLAG__ (TRUE or FALSE).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
207 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
208 #define __HAL_PWR_GET_FLAG(__FLAG__) ((PWR->CSR & (__FLAG__)) == (__FLAG__))
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
209
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
210 /** @brief Clear the PWR's pending flags.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
211 * @param __FLAG__: specifies the flag to clear.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
212 * This parameter can be one of the following values:
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
213 * @arg PWR_FLAG_WU: Wake Up flag
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
214 * @arg PWR_FLAG_SB: StandBy flag
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
215 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
216 #define __HAL_PWR_CLEAR_FLAG(__FLAG__) SET_BIT(PWR->CR, ((__FLAG__) << 2))
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
217
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
218 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
219 * @brief Enable interrupt on PVD Exti Line 16.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
220 * @retval None.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
221 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
222 #define __HAL_PWR_PVD_EXTI_ENABLE_IT() SET_BIT(EXTI->IMR, PWR_EXTI_LINE_PVD)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
223
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
224 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
225 * @brief Disable interrupt on PVD Exti Line 16.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
226 * @retval None.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
227 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
228 #define __HAL_PWR_PVD_EXTI_DISABLE_IT() CLEAR_BIT(EXTI->IMR, PWR_EXTI_LINE_PVD)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
229
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
230 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
231 * @brief Enable event on PVD Exti Line 16.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
232 * @retval None.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
233 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
234 #define __HAL_PWR_PVD_EXTI_ENABLE_EVENT() SET_BIT(EXTI->EMR, PWR_EXTI_LINE_PVD)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
235
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
236 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
237 * @brief Disable event on PVD Exti Line 16.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
238 * @retval None.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
239 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
240 #define __HAL_PWR_PVD_EXTI_DISABLE_EVENT() CLEAR_BIT(EXTI->EMR, PWR_EXTI_LINE_PVD)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
241
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
242
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
243 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
244 * @brief PVD EXTI line configuration: set falling edge trigger.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
245 * @retval None.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
246 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
247 #define __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE() SET_BIT(EXTI->FTSR, PWR_EXTI_LINE_PVD)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
248
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
249
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
250 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
251 * @brief Disable the PVD Extended Interrupt Falling Trigger.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
252 * @retval None.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
253 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
254 #define __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE() CLEAR_BIT(EXTI->FTSR, PWR_EXTI_LINE_PVD)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
255
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
256
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
257 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
258 * @brief PVD EXTI line configuration: set rising edge trigger.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
259 * @retval None.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
260 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
261 #define __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE() SET_BIT(EXTI->RTSR, PWR_EXTI_LINE_PVD)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
262
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
263 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
264 * @brief Disable the PVD Extended Interrupt Rising Trigger.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
265 * This parameter can be:
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
266 * @retval None.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
267 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
268 #define __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE() CLEAR_BIT(EXTI->RTSR, PWR_EXTI_LINE_PVD)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
269
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
270 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
271 * @brief PVD EXTI line configuration: set rising & falling edge trigger.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
272 * @retval None.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
273 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
274 #define __HAL_PWR_PVD_EXTI_ENABLE_RISING_FALLING_EDGE() __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE();__HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE();
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
275
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
276 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
277 * @brief Disable the PVD Extended Interrupt Rising & Falling Trigger.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
278 * This parameter can be:
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
279 * @retval None.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
280 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
281 #define __HAL_PWR_PVD_EXTI_DISABLE_RISING_FALLING_EDGE() __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE();__HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE();
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
282
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
283
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
284
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
285 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
286 * @brief Check whether the specified PVD EXTI interrupt flag is set or not.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
287 * @retval EXTI PVD Line Status.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
288 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
289 #define __HAL_PWR_PVD_EXTI_GET_FLAG() (EXTI->PR & (PWR_EXTI_LINE_PVD))
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
290
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
291 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
292 * @brief Clear the PVD EXTI flag.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
293 * @retval None.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
294 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
295 #define __HAL_PWR_PVD_EXTI_CLEAR_FLAG() (EXTI->PR = (PWR_EXTI_LINE_PVD))
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
296
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
297 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
298 * @brief Generate a Software interrupt on selected EXTI line.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
299 * @retval None.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
300 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
301 #define __HAL_PWR_PVD_EXTI_GENERATE_SWIT() SET_BIT(EXTI->SWIER, PWR_EXTI_LINE_PVD)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
302 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
303 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
304 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
305
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
306 /* Private macro -------------------------------------------------------------*/
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
307 /** @defgroup PWR_Private_Macros PWR Private Macros
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
308 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
309 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
310 #define IS_PWR_PVD_LEVEL(LEVEL) (((LEVEL) == PWR_PVDLEVEL_0) || ((LEVEL) == PWR_PVDLEVEL_1)|| \
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
311 ((LEVEL) == PWR_PVDLEVEL_2) || ((LEVEL) == PWR_PVDLEVEL_3)|| \
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
312 ((LEVEL) == PWR_PVDLEVEL_4) || ((LEVEL) == PWR_PVDLEVEL_5)|| \
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
313 ((LEVEL) == PWR_PVDLEVEL_6) || ((LEVEL) == PWR_PVDLEVEL_7))
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
314
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
315
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
316 #define IS_PWR_PVD_MODE(MODE) (((MODE) == PWR_PVD_MODE_IT_RISING)|| ((MODE) == PWR_PVD_MODE_IT_FALLING) || \
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
317 ((MODE) == PWR_PVD_MODE_IT_RISING_FALLING) || ((MODE) == PWR_PVD_MODE_EVENT_RISING) || \
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
318 ((MODE) == PWR_PVD_MODE_EVENT_FALLING) || ((MODE) == PWR_PVD_MODE_EVENT_RISING_FALLING) || \
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
319 ((MODE) == PWR_PVD_MODE_NORMAL))
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
320
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
321 #define IS_PWR_WAKEUP_PIN(PIN) (((PIN) == PWR_WAKEUP_PIN1))
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
322
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
323 #define IS_PWR_REGULATOR(REGULATOR) (((REGULATOR) == PWR_MAINREGULATOR_ON) || \
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
324 ((REGULATOR) == PWR_LOWPOWERREGULATOR_ON))
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
325
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
326 #define IS_PWR_SLEEP_ENTRY(ENTRY) (((ENTRY) == PWR_SLEEPENTRY_WFI) || ((ENTRY) == PWR_SLEEPENTRY_WFE))
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
327
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
328 #define IS_PWR_STOP_ENTRY(ENTRY) (((ENTRY) == PWR_STOPENTRY_WFI) || ((ENTRY) == PWR_STOPENTRY_WFE))
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
329
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
330 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
331 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
332 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
333
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
334
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
335
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
336 /* Exported functions --------------------------------------------------------*/
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
337
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
338 /** @addtogroup PWR_Exported_Functions PWR Exported Functions
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
339 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
340 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
341
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
342 /** @addtogroup PWR_Exported_Functions_Group1 Initialization and de-initialization functions
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
343 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
344 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
345
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
346 /* Initialization and de-initialization functions *******************************/
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
347 void HAL_PWR_DeInit(void);
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
348 void HAL_PWR_EnableBkUpAccess(void);
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
349 void HAL_PWR_DisableBkUpAccess(void);
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
350
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
351 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
352 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
353 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
354
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
355 /** @addtogroup PWR_Exported_Functions_Group2 Peripheral Control functions
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
356 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
357 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
358
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
359 /* Peripheral Control functions ************************************************/
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
360 void HAL_PWR_ConfigPVD(PWR_PVDTypeDef *sConfigPVD);
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
361 /* #define HAL_PWR_ConfigPVD 12*/
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
362 void HAL_PWR_EnablePVD(void);
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
363 void HAL_PWR_DisablePVD(void);
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
364
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
365 /* WakeUp pins configuration functions ****************************************/
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
366 void HAL_PWR_EnableWakeUpPin(uint32_t WakeUpPinx);
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
367 void HAL_PWR_DisableWakeUpPin(uint32_t WakeUpPinx);
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
368
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
369 /* Low Power modes configuration functions ************************************/
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
370 void HAL_PWR_EnterSTOPMode(uint32_t Regulator, uint8_t STOPEntry);
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
371 void HAL_PWR_EnterSLEEPMode(uint32_t Regulator, uint8_t SLEEPEntry);
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
372 void HAL_PWR_EnterSTANDBYMode(void);
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
373
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
374 void HAL_PWR_EnableSleepOnExit(void);
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
375 void HAL_PWR_DisableSleepOnExit(void);
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
376 void HAL_PWR_EnableSEVOnPend(void);
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
377 void HAL_PWR_DisableSEVOnPend(void);
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
378
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
379
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
380
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
381 void HAL_PWR_PVD_IRQHandler(void);
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
382 void HAL_PWR_PVDCallback(void);
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
383 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
384 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
385 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
386
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
387 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
388 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
389 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
390
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
391 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
392 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
393 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
394
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
395 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
396 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
397 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
398
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
399 #ifdef __cplusplus
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
400 }
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
401 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
402
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
403
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
404 #endif /* __STM32F1xx_HAL_PWR_H */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
405
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
406 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/