Skip to content

Commit 986225d

Browse files
committed
Merge pull request #1838 from egostm/dev_F4_V1.12.0
[STM32F4xx] Update Cube hal to v1.12.0
2 parents f3d547e + e5a12ea commit 986225d

File tree

210 files changed

+100490
-82766
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

210 files changed

+100490
-82766
lines changed

hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/stm32f446xx.h

Lines changed: 5703 additions & 5610 deletions
Large diffs are not rendered by default.

hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/stm32f4xx.h

Lines changed: 56 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
******************************************************************************
33
* @file stm32f4xx.h
44
* @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.
88
*
99
* The file is the unique include file that the application programmer
1010
* is using in the C source code, usually in main.c. This file contains:
1111
* - Configuration section that allows to select:
1212
* - The STM32F4xx device used in the target application
13-
* - To use or not the peripherals drivers in application code(i.e.
14-
* code will be based on direct access to peripherals 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
1515
* rather than drivers API), this option is controlled by
1616
* "#define USE_HAL_DRIVER"
1717
*
1818
******************************************************************************
1919
* @attention
2020
*
21-
* <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
21+
* <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
2222
*
2323
* Redistribution and use in source and binary forms, with or without modification,
2424
* are permitted provided that the following conditions are met:
@@ -76,7 +76,10 @@
7676
*/
7777
#if !defined (STM32F405xx) && !defined (STM32F415xx) && !defined (STM32F407xx) && !defined (STM32F417xx) && \
7878
!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)
8083
/* #define STM32F405xx */ /*!< STM32F405RG, STM32F405VG and STM32F405ZG Devices */
8184
/* #define STM32F415xx */ /*!< STM32F415RG, STM32F415VG and STM32F415ZG Devices */
8285
/* #define STM32F407xx */ /*!< STM32F407VG, STM32F407VE, STM32F407ZG, STM32F407ZE, STM32F407IG and STM32F407IE Devices */
@@ -89,9 +92,20 @@
8992
STM32F439NI, STM32F439IG and STM32F439II Devices */
9093
/* #define STM32F401xC */ /*!< STM32F401CB, STM32F401CC, STM32F401RB, STM32F401RC, STM32F401VB and STM32F401VC Devices */
9194
/* #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 */
95109
#endif
96110

97111
/* Tip: To avoid modifying this file each time you need to switch between these
@@ -107,17 +121,17 @@
107121
#endif /* USE_HAL_DRIVER */
108122

109123
/**
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+
121135
/**
122136
* @}
123137
*/
@@ -146,10 +160,28 @@
146160
#include "stm32f401xc.h"
147161
#elif defined(STM32F401xE)
148162
#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"
149169
#elif defined(STM32F411xE)
150170
#include "stm32f411xe.h"
151171
#elif defined(STM32F446xx)
152172
#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"
153185
#else
154186
#error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
155187
#endif
@@ -163,20 +195,20 @@
163195
*/
164196
typedef enum
165197
{
166-
RESET = 0,
198+
RESET = 0U,
167199
SET = !RESET
168200
} FlagStatus, ITStatus;
169201

170202
typedef enum
171203
{
172-
DISABLE = 0,
204+
DISABLE = 0U,
173205
ENABLE = !DISABLE
174206
} FunctionalState;
175207
#define IS_FUNCTIONAL_STATE(STATE) (((STATE) == DISABLE) || ((STATE) == ENABLE))
176208

177209
typedef enum
178210
{
179-
ERROR = 0,
211+
ERROR = 0U,
180212
SUCCESS = !ERROR
181213
} ErrorStatus;
182214

0 commit comments

Comments
 (0)