3
3
* @file stm32f4xx.h
4
4
* @author MCD Application Team
5
5
* @brief CMSIS STM32F4xx Device Peripheral Access Layer Header File.
6
- *
6
+ *
7
7
* The file is the unique include file that the application programmer
8
8
* is using in the C source code, usually in main.c. This file contains:
9
9
* - Configuration section that allows to select:
10
10
* - The STM32F4xx device used in the target application
11
- * - To use or not the peripheral’s drivers in application code(i.e.
12
- * code will be based on direct access to peripheral’s registers
13
- * rather than drivers API), this option is controlled by
11
+ * - To use or not the peripheral’s drivers in application code(i.e.
12
+ * code will be based on direct access to peripheral’s registers
13
+ * rather than drivers API), this option is controlled by
14
14
* "#define USE_HAL_DRIVER"
15
- *
15
+ *
16
16
******************************************************************************
17
17
* @attention
18
18
*
50
50
/** @addtogroup stm32f4xx
51
51
* @{
52
52
*/
53
-
53
+
54
54
#ifndef __STM32F4xx_H
55
55
#define __STM32F4xx_H
56
56
57
57
#ifdef __cplusplus
58
58
extern "C" {
59
59
#endif /* __cplusplus */
60
-
60
+
61
61
/** @addtogroup Library_configuration_section
62
62
* @{
63
63
*/
64
-
64
+
65
65
/**
66
66
* @brief STM32 Family
67
67
*/
70
70
#endif /* STM32F4 */
71
71
72
72
/* Uncomment the line below according to the target STM32 device used in your
73
- application
73
+ application
74
74
*/
75
75
#if !defined (STM32F405xx ) && !defined (STM32F415xx ) && !defined (STM32F407xx ) && !defined (STM32F417xx ) && \
76
76
!defined (STM32F427xx ) && !defined (STM32F437xx ) && !defined (STM32F429xx ) && !defined (STM32F439xx ) && \
84
84
/* #define STM32F417xx */ /*!< STM32F417VG, STM32F417VE, STM32F417ZG, STM32F417ZE, STM32F417IG and STM32F417IE Devices */
85
85
/* #define STM32F427xx */ /*!< STM32F427VG, STM32F427VI, STM32F427ZG, STM32F427ZI, STM32F427IG and STM32F427II Devices */
86
86
/* #define STM32F437xx */ /*!< STM32F437VG, STM32F437VI, STM32F437ZG, STM32F437ZI, STM32F437IG and STM32F437II Devices */
87
- /* #define STM32F429xx */ /*!< STM32F429VG, STM32F429VI, STM32F429ZG, STM32F429ZI, STM32F429BG, STM32F429BI, STM32F429NG,
87
+ /* #define STM32F429xx */ /*!< STM32F429VG, STM32F429VI, STM32F429ZG, STM32F429ZI, STM32F429BG, STM32F429BI, STM32F429NG,
88
88
STM32F439NI, STM32F429IG and STM32F429II Devices */
89
- /* #define STM32F439xx */ /*!< STM32F439VG, STM32F439VI, STM32F439ZG, STM32F439ZI, STM32F439BG, STM32F439BI, STM32F439NG,
89
+ /* #define STM32F439xx */ /*!< STM32F439VG, STM32F439VI, STM32F439ZG, STM32F439ZI, STM32F439BG, STM32F439BI, STM32F439NG,
90
90
STM32F439NI, STM32F439IG and STM32F439II Devices */
91
91
/* #define STM32F401xC */ /*!< STM32F401CB, STM32F401CC, STM32F401RB, STM32F401RC, STM32F401VB and STM32F401VC Devices */
92
92
/* #define STM32F401xE */ /*!< STM32F401CD, STM32F401RD, STM32F401VD, STM32F401CE, STM32F401RE and STM32F401VE Devices */
93
93
/* #define STM32F410Tx */ /*!< STM32F410T8 and STM32F410TB Devices */
94
94
/* #define STM32F410Cx */ /*!< STM32F410C8 and STM32F410CB Devices */
95
95
/* #define STM32F410Rx */ /*!< STM32F410R8 and STM32F410RB Devices */
96
96
/* #define STM32F411xE */ /*!< STM32F411CC, STM32F411RC, STM32F411VC, STM32F411CE, STM32F411RE and STM32F411VE Devices */
97
- /* #define STM32F446xx */ /*!< STM32F446MC, STM32F446ME, STM32F446RC, STM32F446RE, STM32F446VC, STM32F446VE, STM32F446ZC,
97
+ /* #define STM32F446xx */ /*!< STM32F446MC, STM32F446ME, STM32F446RC, STM32F446RE, STM32F446VC, STM32F446VE, STM32F446ZC,
98
98
and STM32F446ZE Devices */
99
- /* #define STM32F469xx */ /*!< STM32F469AI, STM32F469II, STM32F469BI, STM32F469NI, STM32F469AG, STM32F469IG, STM32F469BG,
99
+ /* #define STM32F469xx */ /*!< STM32F469AI, STM32F469II, STM32F469BI, STM32F469NI, STM32F469AG, STM32F469IG, STM32F469BG,
100
100
STM32F469NG, STM32F469AE, STM32F469IE, STM32F469BE and STM32F469NE Devices */
101
- /* #define STM32F479xx */ /*!< STM32F479AI, STM32F479II, STM32F479BI, STM32F479NI, STM32F479AG, STM32F479IG, STM32F479BG
101
+ /* #define STM32F479xx */ /*!< STM32F479AI, STM32F479II, STM32F479BI, STM32F479NI, STM32F479AG, STM32F479IG, STM32F479BG
102
102
and STM32F479NG Devices */
103
103
/* #define STM32F412Cx */ /*!< STM32F412CEU and STM32F412CGU Devices */
104
104
/* #define STM32F412Zx */ /*!< STM32F412ZET, STM32F412ZGT, STM32F412ZEJ and STM32F412ZGJ Devices */
108
108
STM32F413RG, STM32F413VG and STM32F413ZG Devices */
109
109
/* #define STM32F423xx */ /*!< STM32F423CH, STM32F423RH, STM32F423VH and STM32F423ZH Devices */
110
110
#endif
111
-
111
+
112
112
/* Tip: To avoid modifying this file each time you need to switch between these
113
113
devices, you can define the device in your toolchain compiler preprocessor.
114
114
*/
115
115
#if !defined (USE_HAL_DRIVER )
116
116
/**
117
117
* @brief Comment the line below if you will not use the peripherals drivers.
118
- In this case, these drivers will not be included and the application code will
119
- be based on direct access to peripherals registers
118
+ In this case, these drivers will not be included and the application code will
119
+ be based on direct access to peripherals registers
120
120
*/
121
121
/*#define USE_HAL_DRIVER */
122
122
#endif /* USE_HAL_DRIVER */
123
123
124
124
/**
125
- * @brief CMSIS version number V2.6.2
125
+ * @brief CMSIS version number V2.6.3
126
126
*/
127
127
#define __STM32F4xx_CMSIS_VERSION_MAIN (0x02U) /*!< [31:24] main version */
128
128
#define __STM32F4xx_CMSIS_VERSION_SUB1 (0x06U) /*!< [23:16] sub1 version */
129
- #define __STM32F4xx_CMSIS_VERSION_SUB2 (0x02U ) /*!< [15:8] sub2 version */
129
+ #define __STM32F4xx_CMSIS_VERSION_SUB2 (0x03U ) /*!< [15:8] sub2 version */
130
130
#define __STM32F4xx_CMSIS_VERSION_RC (0x00U) /*!< [7:0] release candidate */
131
131
#define __STM32F4xx_CMSIS_VERSION ((__STM32F4xx_CMSIS_VERSION_MAIN << 24)\
132
132
|(__STM32F4xx_CMSIS_VERSION_SUB1 << 16)\
197
197
198
198
/** @addtogroup Exported_types
199
199
* @{
200
- */
201
- typedef enum
200
+ */
201
+ typedef enum
202
202
{
203
- RESET = 0U ,
203
+ RESET = 0U ,
204
204
SET = !RESET
205
205
} FlagStatus , ITStatus ;
206
206
207
- typedef enum
207
+ typedef enum
208
208
{
209
- DISABLE = 0U ,
209
+ DISABLE = 0U ,
210
210
ENABLE = !DISABLE
211
211
} FunctionalState ;
212
212
#define IS_FUNCTIONAL_STATE (STATE ) (((STATE) == DISABLE) || ((STATE) == ENABLE))
213
213
214
- typedef enum
214
+ typedef enum
215
215
{
216
- ERROR = 0U ,
217
- SUCCESS = !ERROR
216
+ SUCCESS = 0U ,
217
+ ERROR = !SUCCESS
218
218
} ErrorStatus ;
219
219
220
220
/**
@@ -239,7 +239,7 @@ typedef enum
239
239
240
240
#define MODIFY_REG (REG , CLEARMASK , SETMASK ) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | (SETMASK)))
241
241
242
- #define POSITION_VAL (VAL ) (__CLZ(__RBIT(VAL)))
242
+ #define POSITION_VAL (VAL ) (__CLZ(__RBIT(VAL)))
243
243
244
244
245
245
/**
@@ -262,7 +262,7 @@ typedef enum
262
262
/**
263
263
* @}
264
264
*/
265
-
265
+
266
266
267
267
268
268
0 commit comments