4
4
* @author MCD Application Team
5
5
* @version V2.1.2
6
6
* @date 29-June-2016
7
- * @brief CMSIS STM32F2xx Device Peripheral Access Layer Header File.
7
+ * @brief CMSIS STM32F2xx Device Peripheral Access Layer Header File.
8
8
*
9
9
* The file is the unique include file that the application programmer
10
10
* is using in the C source code, usually in main.c. This file contains:
11
11
* - Configuration section that allows to select:
12
12
* - The STM32F2xx device used in the target application
13
- * - To use or not the peripheral’s drivers in application code(i.e.
14
- * code will be based on direct access to peripheral’s registers
15
- * rather than drivers API), this option is controlled by
13
+ * - To use or not the peripheral’s drivers in application code(i.e.
14
+ * code will be based on direct access to peripheral’s registers
15
+ * rather than drivers API), this option is controlled by
16
16
* "#define USE_HAL_DRIVER"
17
- *
17
+ *
18
18
******************************************************************************
19
19
* @attention
20
20
*
52
52
/** @addtogroup stm32f2xx
53
53
* @{
54
54
*/
55
-
55
+
56
56
#ifndef __STM32F2xx_H
57
57
#define __STM32F2xx_H
58
58
59
59
#ifdef __cplusplus
60
60
extern "C" {
61
61
#endif /* __cplusplus */
62
-
62
+
63
63
/** @addtogroup Library_configuration_section
64
64
* @{
65
65
*/
70
70
#if !defined (STM32F2 )
71
71
#define STM32F2
72
72
#endif /* STM32F2 */
73
-
73
+
74
74
/* Uncomment the line below according to the target STM32 device used in your
75
- application
75
+ application
76
76
*/
77
77
#if !defined (STM32F205xx ) && !defined (STM32F215xx ) && !defined (STM32F207xx ) && !defined (STM32F217xx )
78
78
83
83
/* #define STM32F207xx */ /*!< STM32F207VG, STM32F207ZG, STM32F207IG, STM32F207VF, STM32F207ZF, STM32F207IF,
84
84
STM32F207VE, STM32F207ZE, STM32F207IE, STM32F207VC, STM32F207ZC and STM32F207IC Devices */
85
85
/* #define STM32F217xx */ /*!< STM32F217VG, STM32F217ZG, STM32F217IG, STM32F217VE, STM32F217ZE and STM32F217IE Devices */
86
-
86
+
87
87
#endif
88
-
88
+
89
89
/* Tip: To avoid modifying this file each time you need to switch between these
90
90
devices, you can define the device in your toolchain compiler preprocessor.
91
91
*/
92
92
#if !defined (USE_HAL_DRIVER )
93
93
/**
94
94
* @brief Comment the line below if you will not use the peripherals drivers.
95
- In this case, these drivers will not be included and the application code will
96
- be based on direct access to peripherals registers
95
+ In this case, these drivers will not be included and the application code will
96
+ be based on direct access to peripherals registers
97
97
*/
98
98
/*#define USE_HAL_DRIVER */
99
99
#endif /* USE_HAL_DRIVER */
136
136
137
137
/** @addtogroup Exported_types
138
138
* @{
139
- */
140
- typedef enum
139
+ */
140
+ typedef enum
141
141
{
142
- RESET = 0 ,
142
+ RESET = 0 ,
143
143
SET = !RESET
144
144
} FlagStatus , ITStatus ;
145
145
146
- typedef enum
146
+ typedef enum
147
147
{
148
- DISABLE = 0 ,
148
+ DISABLE = 0 ,
149
149
ENABLE = !DISABLE
150
150
} FunctionalState ;
151
151
#define IS_FUNCTIONAL_STATE (STATE ) (((STATE) == DISABLE) || ((STATE) == ENABLE))
152
152
153
- typedef enum
153
+ typedef enum
154
154
{
155
- ERROR = 0 ,
155
+ ERROR = 0 ,
156
156
SUCCESS = !ERROR
157
157
} ErrorStatus ;
158
158
@@ -178,13 +178,13 @@ typedef enum
178
178
179
179
#define MODIFY_REG (REG , CLEARMASK , SETMASK ) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | (SETMASK)))
180
180
181
- #define POSITION_VAL (VAL ) (__CLZ(__RBIT(VAL)))
181
+ #define POSITION_VAL (VAL ) (__CLZ(__RBIT(VAL)))
182
182
183
183
184
184
/**
185
185
* @}
186
186
*/
187
-
187
+
188
188
#if defined (USE_HAL_DRIVER )
189
189
#include "stm32f2xx_hal.h"
190
190
#endif /* USE_HAL_DRIVER */
@@ -202,7 +202,7 @@ typedef enum
202
202
/**
203
203
* @}
204
204
*/
205
-
205
+
206
206
207
207
208
208
0 commit comments