|
2 | 2 | ******************************************************************************
|
3 | 3 | * @file stm32f4xx.h
|
4 | 4 | * @author MCD Application Team
|
5 |
| - * @version V2.3.2 |
6 |
| - * @date 26-June-2015 |
7 |
| - * @brief CMSIS STM32F4xx Device Peripheral Access Layer Header File. |
| 5 | + * @version V2.5.0 |
| 6 | + * @date 22-April-2016 |
| 7 | + * @brief CMSIS STM32F4xx 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 STM32F4xx 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 |
| 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 | 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 | *
|
21 |
| - * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
| 21 | + * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> |
22 | 22 | *
|
23 | 23 | * Redistribution and use in source and binary forms, with or without modification,
|
24 | 24 | * are permitted provided that the following conditions are met:
|
|
76 | 76 | */
|
77 | 77 | #if !defined (STM32F405xx) && !defined (STM32F415xx) && !defined (STM32F407xx) && !defined (STM32F417xx) && \
|
78 | 78 | !defined (STM32F427xx) && !defined (STM32F437xx) && !defined (STM32F429xx) && !defined (STM32F439xx) && \
|
79 |
| - !defined (STM32F401xC) && !defined (STM32F401xE) && !defined (STM32F411xE) && !defined (STM32F446xx) |
| 79 | + !defined (STM32F401xC) && !defined (STM32F401xE) && !defined (STM32F410Tx) && !defined (STM32F410Cx) && \ |
| 80 | + !defined (STM32F410Rx) && !defined (STM32F411xE) && !defined (STM32F446xx) && !defined (STM32F469xx) && \ |
| 81 | + !defined (STM32F479xx) && !defined (STM32F412Cx) && !defined (STM32F412Rx) && !defined (STM32F412Vx) && \ |
| 82 | + !defined (STM32F412Zx) |
80 | 83 | /* #define STM32F405xx */ /*!< STM32F405RG, STM32F405VG and STM32F405ZG Devices */
|
81 | 84 | /* #define STM32F415xx */ /*!< STM32F415RG, STM32F415VG and STM32F415ZG Devices */
|
82 | 85 | /* #define STM32F407xx */ /*!< STM32F407VG, STM32F407VE, STM32F407ZG, STM32F407ZE, STM32F407IG and STM32F407IE Devices */
|
|
89 | 92 | STM32F439NI, STM32F439IG and STM32F439II Devices */
|
90 | 93 | /* #define STM32F401xC */ /*!< STM32F401CB, STM32F401CC, STM32F401RB, STM32F401RC, STM32F401VB and STM32F401VC Devices */
|
91 | 94 | /* #define STM32F401xE */ /*!< STM32F401CD, STM32F401RD, STM32F401VD, STM32F401CE, STM32F401RE and STM32F401VE Devices */
|
92 |
| - /* #define STM32F411xE */ /*!< STM32F411CD, STM32F411RD, STM32F411VD, STM32F411CE, STM32F411RE and STM32F411VE Devices */ |
93 |
| -#define STM32F446xx /*!< STM32F446MC, STM32F446ME, STM32F446RC, STM32F446RE, STM32F446VC, STM32F446VE, STM32F446ZC, |
94 |
| - and STM32F446ZE Devices */ |
| 95 | + /* #define STM32F410Tx */ /*!< STM32F410T8 and STM32F410TB Devices */ |
| 96 | + /* #define STM32F410Cx */ /*!< STM32F410C8 and STM32F410CB Devices */ |
| 97 | + /* #define STM32F410Rx */ /*!< STM32F410R8 and STM32F410RB Devices */ |
| 98 | + /* #define STM32F411xE */ /*!< STM32F411CC, STM32F411RC, STM32F411VC, STM32F411CE, STM32F411RE and STM32F411VE Devices */ |
| 99 | + #define STM32F446xx /*!< STM32F446MC, STM32F446ME, STM32F446RC, STM32F446RE, STM32F446VC, STM32F446VE, STM32F446ZC, |
| 100 | + and STM32F446ZE Devices */ |
| 101 | + /* #define STM32F469xx */ /*!< STM32F469AI, STM32F469II, STM32F469BI, STM32F469NI, STM32F469AG, STM32F469IG, STM32F469BG, |
| 102 | + STM32F469NG, STM32F469AE, STM32F469IE, STM32F469BE and STM32F469NE Devices */ |
| 103 | + /* #define STM32F479xx */ /*!< STM32F479AI, STM32F479II, STM32F479BI, STM32F479NI, STM32F479AG, STM32F479IG, STM32F479BG |
| 104 | + and STM32F479NG Devices */ |
| 105 | + /* #define STM32F412Cx */ /*!< STM32F412CEU and STM32F412CGU Devices */ |
| 106 | + /* #define STM32F412Zx */ /*!< STM32F412ZET, STM32F412ZGT, STM32F412ZEJ and STM32F412ZGJ Devices */ |
| 107 | + /* #define STM32F412Vx */ /*!< STM32F412VET, STM32F412VGT, STM32F412VEH and STM32F412VGH Devices */ |
| 108 | + /* #define STM32F412Rx */ /*!< STM32F412RET, STM32F412RGT, STM32F412REY and STM32F412RGY Devices */ |
95 | 109 | #endif
|
96 | 110 |
|
97 | 111 | /* Tip: To avoid modifying this file each time you need to switch between these
|
|
107 | 121 | #endif /* USE_HAL_DRIVER */
|
108 | 122 |
|
109 | 123 | /**
|
110 |
| - * @brief CMSIS Device version number V2.3.2 |
111 |
| - */ |
112 |
| -#define __STM32F4xx_CMSIS_DEVICE_VERSION_MAIN (0x02) /*!< [31:24] main version */ |
113 |
| -#define __STM32F4xx_CMSIS_DEVICE_VERSION_SUB1 (0x03) /*!< [23:16] sub1 version */ |
114 |
| -#define __STM32F4xx_CMSIS_DEVICE_VERSION_SUB2 (0x02) /*!< [15:8] sub2 version */ |
115 |
| -#define __STM32F4xx_CMSIS_DEVICE_VERSION_RC (0x00) /*!< [7:0] release candidate */ |
116 |
| -#define __STM32F4xx_CMSIS_DEVICE_VERSION ((__STM32F4xx_CMSIS_DEVICE_VERSION_MAIN << 24)\ |
117 |
| - |(__STM32F4xx_CMSIS_DEVICE_VERSION_SUB1 << 16)\ |
118 |
| - |(__STM32F4xx_CMSIS_DEVICE_VERSION_SUB2 << 8 )\ |
119 |
| - |(__STM32F4xx_CMSIS_DEVICE_VERSION)) |
120 |
| - |
| 124 | + * @brief CMSIS version number V2.5.0 |
| 125 | + */ |
| 126 | +#define __STM32F4xx_CMSIS_VERSION_MAIN (0x02U) /*!< [31:24] main version */ |
| 127 | +#define __STM32F4xx_CMSIS_VERSION_SUB1 (0x05U) /*!< [23:16] sub1 version */ |
| 128 | +#define __STM32F4xx_CMSIS_VERSION_SUB2 (0x00U) /*!< [15:8] sub2 version */ |
| 129 | +#define __STM32F4xx_CMSIS_VERSION_RC (0x00U) /*!< [7:0] release candidate */ |
| 130 | +#define __STM32F4xx_CMSIS_VERSION ((__STM32F4xx_CMSIS_VERSION_MAIN << 24)\ |
| 131 | + |(__STM32F4xx_CMSIS_VERSION_SUB1 << 16)\ |
| 132 | + |(__STM32F4xx_CMSIS_VERSION_SUB2 << 8 )\ |
| 133 | + |(__STM32F4xx_CMSIS_VERSION)) |
| 134 | + |
121 | 135 | /**
|
122 | 136 | * @}
|
123 | 137 | */
|
|
146 | 160 | #include "stm32f401xc.h"
|
147 | 161 | #elif defined(STM32F401xE)
|
148 | 162 | #include "stm32f401xe.h"
|
| 163 | +#elif defined(STM32F410Tx) |
| 164 | + #include "stm32f410tx.h" |
| 165 | +#elif defined(STM32F410Cx) |
| 166 | + #include "stm32f410cx.h" |
| 167 | +#elif defined(STM32F410Rx) |
| 168 | + #include "stm32f410rx.h" |
149 | 169 | #elif defined(STM32F411xE)
|
150 | 170 | #include "stm32f411xe.h"
|
151 | 171 | #elif defined(STM32F446xx)
|
152 | 172 | #include "stm32f446xx.h"
|
| 173 | +#elif defined(STM32F469xx) |
| 174 | + #include "stm32f469xx.h" |
| 175 | +#elif defined(STM32F479xx) |
| 176 | + #include "stm32f479xx.h" |
| 177 | +#elif defined(STM32F412Cx) |
| 178 | + #include "stm32f412cx.h" |
| 179 | +#elif defined(STM32F412Zx) |
| 180 | + #include "stm32f412zx.h" |
| 181 | +#elif defined(STM32F412Rx) |
| 182 | + #include "stm32f412rx.h" |
| 183 | +#elif defined(STM32F412Vx) |
| 184 | + #include "stm32f412vx.h" |
153 | 185 | #else
|
154 | 186 | #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
|
155 | 187 | #endif
|
|
163 | 195 | */
|
164 | 196 | typedef enum
|
165 | 197 | {
|
166 |
| - RESET = 0, |
| 198 | + RESET = 0U, |
167 | 199 | SET = !RESET
|
168 | 200 | } FlagStatus, ITStatus;
|
169 | 201 |
|
170 | 202 | typedef enum
|
171 | 203 | {
|
172 |
| - DISABLE = 0, |
| 204 | + DISABLE = 0U, |
173 | 205 | ENABLE = !DISABLE
|
174 | 206 | } FunctionalState;
|
175 | 207 | #define IS_FUNCTIONAL_STATE(STATE) (((STATE) == DISABLE) || ((STATE) == ENABLE))
|
176 | 208 |
|
177 | 209 | typedef enum
|
178 | 210 | {
|
179 |
| - ERROR = 0, |
| 211 | + ERROR = 0U, |
180 | 212 | SUCCESS = !ERROR
|
181 | 213 | } ErrorStatus;
|
182 | 214 |
|
|
0 commit comments