Skip to content

Commit 88af3bb

Browse files
committed
Import STM32CubeH7 v1.11.0 on 06-Dec-2022.
From https://github.com/STMicroelectronics/STM32CubeH7.git tag v1.11.0 Signed-off-by: Damien George <[email protected]>
1 parent 0cbbf16 commit 88af3bb

File tree

356 files changed

+284964
-29232
lines changed

Some content is hidden

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

356 files changed

+284964
-29232
lines changed

CMSIS/STM32H7xx/Include/stm32h723xx.h

+24,262
Large diffs are not rendered by default.

CMSIS/STM32H7xx/Include/stm32h725xx.h

+24,274
Large diffs are not rendered by default.

CMSIS/STM32H7xx/Include/stm32h730xx.h

+24,753
Large diffs are not rendered by default.

CMSIS/STM32H7xx/Include/stm32h730xxq.h

+24,765
Large diffs are not rendered by default.

CMSIS/STM32H7xx/Include/stm32h733xx.h

+24,753
Large diffs are not rendered by default.

CMSIS/STM32H7xx/Include/stm32h735xx.h

+24,765
Large diffs are not rendered by default.

CMSIS/STM32H7xx/Include/stm32h742xx.h

+620-357
Large diffs are not rendered by default.

CMSIS/STM32H7xx/Include/stm32h743xx.h

+622-359
Large diffs are not rendered by default.

CMSIS/STM32H7xx/Include/stm32h745xg.h

+27,345
Large diffs are not rendered by default.

CMSIS/STM32H7xx/Include/stm32h745xx.h

+635-364
Large diffs are not rendered by default.

CMSIS/STM32H7xx/Include/stm32h747xg.h

+30,518
Large diffs are not rendered by default.

CMSIS/STM32H7xx/Include/stm32h747xx.h

+649-378
Large diffs are not rendered by default.

CMSIS/STM32H7xx/Include/stm32h750xx.h

+625-349
Large diffs are not rendered by default.

CMSIS/STM32H7xx/Include/stm32h753xx.h

+624-343
Large diffs are not rendered by default.

CMSIS/STM32H7xx/Include/stm32h755xx.h

+637-348
Large diffs are not rendered by default.

CMSIS/STM32H7xx/Include/stm32h757xx.h

+651-362
Large diffs are not rendered by default.

CMSIS/STM32H7xx/Include/stm32h7a3xx.h

+434-308
Large diffs are not rendered by default.

CMSIS/STM32H7xx/Include/stm32h7a3xxq.h

+434-308
Large diffs are not rendered by default.

CMSIS/STM32H7xx/Include/stm32h7b0xx.h

+436-298
Large diffs are not rendered by default.

CMSIS/STM32H7xx/Include/stm32h7b0xxq.h

+436-298
Large diffs are not rendered by default.

CMSIS/STM32H7xx/Include/stm32h7b3xx.h

+436-292
Large diffs are not rendered by default.

CMSIS/STM32H7xx/Include/stm32h7b3xxq.h

+436-292
Large diffs are not rendered by default.

CMSIS/STM32H7xx/Include/stm32h7xx.h

+95-18
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@
1616
******************************************************************************
1717
* @attention
1818
*
19-
* <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
20-
* All rights reserved.</center></h2>
19+
* Copyright (c) 2017 STMicroelectronics.
20+
* All rights reserved.
2121
*
22-
* This software component is licensed by ST under BSD 3-Clause license,
23-
* the "License"; You may not use this file except in compliance with the
24-
* License. You may obtain a copy of the License at:
25-
* opensource.org/licenses/BSD-3-Clause
22+
* This software is licensed under terms that can be found in the LICENSE file
23+
* in the root directory of this software component.
24+
* If no LICENSE file comes with this software, it is provided AS-IS.
2625
*
2726
******************************************************************************
2827
*/
@@ -59,21 +58,30 @@
5958
*/
6059

6160
#if !defined (STM32H743xx) && !defined (STM32H753xx) && !defined (STM32H750xx) && !defined (STM32H742xx) && \
62-
!defined (STM32H745xx) && !defined (STM32H755xx) && !defined (STM32H747xx) && !defined (STM32H757xx) && \
63-
!defined (STM32H7A3xx) && !defined (STM32H7A3xxQ) && !defined (STM32H7B3xx) && !defined (STM32H7B3xxQ) && !defined (STM32H7B0xx) && !defined (STM32H7B0xxQ)
61+
!defined (STM32H745xx) && !defined (STM32H745xG) && !defined (STM32H755xx) && !defined (STM32H747xx) && !defined (STM32H747xG)&& !defined (STM32H757xx) && \
62+
!defined (STM32H7A3xx) && !defined (STM32H7A3xxQ) && !defined (STM32H7B3xx) && !defined (STM32H7B3xxQ) && !defined (STM32H7B0xx) && !defined (STM32H7B0xxQ) && \
63+
!defined (STM32H735xx) && !defined (STM32H733xx) && !defined (STM32H730xx) && !defined (STM32H730xxQ) && !defined (STM32H725xx) && !defined (STM32H723xx)
6464
/* #define STM32H742xx */ /*!< STM32H742VI, STM32H742ZI, STM32H742AI, STM32H742II, STM32H742BI, STM32H742XI Devices */
6565
/* #define STM32H743xx */ /*!< STM32H743VI, STM32H743ZI, STM32H743AI, STM32H743II, STM32H743BI, STM32H743XI Devices */
6666
/* #define STM32H753xx */ /*!< STM32H753VI, STM32H753ZI, STM32H753AI, STM32H753II, STM32H753BI, STM32H753XI Devices */
6767
/* #define STM32H750xx */ /*!< STM32H750V, STM32H750I, STM32H750X Devices */
6868
/* #define STM32H747xx */ /*!< STM32H747ZI, STM32H747AI, STM32H747II, STM32H747BI, STM32H747XI Devices */
69+
/* #define STM32H747xG */ /*!< STM32H747AG, STM32H747IG, STM32H747BG, STM32H747XG */
6970
/* #define STM32H757xx */ /*!< STM32H757ZI, STM32H757AI, STM32H757II, STM32H757BI, STM32H757XI Devices */
7071
/* #define STM32H745xx */ /*!< STM32H745ZI, STM32H745II, STM32H745BI, STM32H745XI Devices */
72+
/* #define STM32H745xG */ /*!< STM32H745ZG, STM32H745IG, STM32H745BG, STM32H745XG Devices */
7173
/* #define STM32H755xx */ /*!< STM32H755ZI, STM32H755II, STM32H755BI, STM32H755XI Devices */
7274
/* #define STM32H7B0xx */ /*!< STM32H7B0ABIxQ, STM32H7B0IBTx, STM32H7B0RBTx, STM32H7B0VBTx, STM32H7B0ZBTx, STM32H7B0IBKxQ */
7375
/* #define STM32H7A3xx */ /*!< STM32H7A3IIK6, STM32H7A3IIT6, STM32H7A3NIH6, STM32H7A3RIT6, STM32H7A3VIH6, STM32H7A3VIT6, STM32H7A3ZIT6 */
7476
/* #define STM32H7A3xxQ */ /*!< STM32H7A3QIY6Q, STM32H7A3IIK6Q, STM32H7A3IIT6Q, STM32H7A3LIH6Q, STM32H7A3VIH6Q, STM32H7A3VIT6Q, STM32H7A3AII6Q, STM32H7A3ZIT6Q */
7577
/* #define STM32H7B3xx */ /*!< STM32H7B3IIK6, STM32H7B3IIT6, STM32H7B3NIH6, STM32H7B3RIT6, STM32H7B3VIH6, STM32H7B3VIT6, STM32H7B3ZIT6 */
7678
/* #define STM32H7B3xxQ */ /*!< STM32H7B3QIY6Q, STM32H7B3IIK6Q, STM32H7B3IIT6Q, STM32H7B3LIH6Q, STM32H7B3VIH6Q, STM32H7B3VIT6Q, STM32H7B3AII6Q, STM32H7B3ZIT6Q */
79+
/* #define STM32H735xx */ /*!< STM32H735AGI6, STM32H735IGK6, STM32H735RGV6, STM32H735VGT6, STM32H735VGY6, STM32H735ZGT6 Devices */
80+
/* #define STM32H733xx */ /*!< STM32H733VGH6, STM32H733VGT6, STM32H733ZGI6, STM32H733ZGT6, Devices */
81+
/* #define STM32H730xx */ /*!< STM32H730VBH6, STM32H730VBT6, STM32H730ZBT6, STM32H730ZBI6 Devices */
82+
/* #define STM32H730xxQ */ /*!< STM32H730IBT6Q, STM32H730ABI6Q, STM32H730IBK6Q Devices */
83+
/* #define STM32H725xx */ /*!< STM32H725AGI6, STM32H725IGK6, STM32H725IGT6, STM32H725RGV6, STM32H725VGT6, STM32H725VGY6, STM32H725ZGT6, STM32H725REV6, SM32H725VET6, STM32H725ZET6, STM32H725AEI6, STM32H725IET6, STM32H725IEK6 Devices */
84+
/* #define STM32H723xx */ /*!< STM32H723VGH6, STM32H723VGT6, STM32H723ZGI6, STM32H723ZGT6, STM32H723VET6, STM32H723VEH6, STM32H723ZET6, STM32H723ZEI6 Devices */
7785
#endif
7886

7987
/* Tip: To avoid modifying this file each time you need to switch between these
@@ -94,16 +102,16 @@
94102
#endif /* USE_HAL_DRIVER */
95103

96104
/**
97-
* @brief CMSIS Device version number V1.7.0
105+
* @brief CMSIS Device version number V1.10.3
98106
*/
99107
#define __STM32H7xx_CMSIS_DEVICE_VERSION_MAIN (0x01) /*!< [31:24] main version */
100-
#define __STM32H7xx_CMSIS_DEVICE_VERSION_SUB1 (0x07) /*!< [23:16] sub1 version */
101-
#define __STM32H7xx_CMSIS_DEVICE_VERSION_SUB2 (0x00) /*!< [15:8] sub2 version */
108+
#define __STM32H7xx_CMSIS_DEVICE_VERSION_SUB1 (0x0A) /*!< [23:16] sub1 version */
109+
#define __STM32H7xx_CMSIS_DEVICE_VERSION_SUB2 (0x03) /*!< [15:8] sub2 version */
102110
#define __STM32H7xx_CMSIS_DEVICE_VERSION_RC (0x00) /*!< [7:0] release candidate */
103-
#define __STM32H7xx_CMSIS_DEVICE_VERSION ((__CMSIS_DEVICE_VERSION_MAIN << 24)\
104-
|(__CMSIS_DEVICE_HAL_VERSION_SUB1 << 16)\
105-
|(__CMSIS_DEVICE_HAL_VERSION_SUB2 << 8 )\
106-
|(__CMSIS_DEVICE_HAL_VERSION_RC))
111+
#define __STM32H7xx_CMSIS_DEVICE_VERSION ((__STM32H7xx_CMSIS_DEVICE_VERSION_MAIN << 24)\
112+
|(__STM32H7xx_CMSIS_DEVICE_VERSION_SUB1 << 16)\
113+
|(__STM32H7xx_CMSIS_DEVICE_VERSION_SUB2 << 8 )\
114+
|(__STM32H7xx_CMSIS_DEVICE_VERSION_RC))
107115

108116
/**
109117
* @}
@@ -123,10 +131,14 @@
123131
#include "stm32h742xx.h"
124132
#elif defined(STM32H745xx)
125133
#include "stm32h745xx.h"
134+
#elif defined(STM32H745xG)
135+
#include "stm32h745xg.h"
126136
#elif defined(STM32H755xx)
127137
#include "stm32h755xx.h"
128138
#elif defined(STM32H747xx)
129139
#include "stm32h747xx.h"
140+
#elif defined(STM32H747xG)
141+
#include "stm32h747xg.h"
130142
#elif defined(STM32H757xx)
131143
#include "stm32h757xx.h"
132144
#elif defined(STM32H7B0xx)
@@ -141,6 +153,18 @@
141153
#include "stm32h7a3xxq.h"
142154
#elif defined(STM32H7B3xxQ)
143155
#include "stm32h7b3xxq.h"
156+
#elif defined(STM32H735xx)
157+
#include "stm32h735xx.h"
158+
#elif defined(STM32H733xx)
159+
#include "stm32h733xx.h"
160+
#elif defined(STM32H730xx)
161+
#include "stm32h730xx.h"
162+
#elif defined(STM32H730xxQ)
163+
#include "stm32h730xxq.h"
164+
#elif defined(STM32H725xx)
165+
#include "stm32h725xx.h"
166+
#elif defined(STM32H723xx)
167+
#include "stm32h723xx.h"
144168
#else
145169
#error "Please select first the target STM32H7xx device used in your application (in stm32h7xx.h file)"
146170
#endif
@@ -167,8 +191,8 @@ typedef enum
167191

168192
typedef enum
169193
{
170-
ERROR = 0,
171-
SUCCESS = !ERROR
194+
SUCCESS = 0,
195+
ERROR = !SUCCESS
172196
} ErrorStatus;
173197

174198
/**
@@ -195,6 +219,60 @@ typedef enum
195219

196220
#define POSITION_VAL(VAL) (__CLZ(__RBIT(VAL)))
197221

222+
/* Use of CMSIS compiler intrinsics for register exclusive access */
223+
/* Atomic 32-bit register access macro to set one or several bits */
224+
#define ATOMIC_SET_BIT(REG, BIT) \
225+
do { \
226+
uint32_t val; \
227+
do { \
228+
val = __LDREXW((__IO uint32_t *)&(REG)) | (BIT); \
229+
} while ((__STREXW(val,(__IO uint32_t *)&(REG))) != 0U); \
230+
} while(0)
231+
232+
/* Atomic 32-bit register access macro to clear one or several bits */
233+
#define ATOMIC_CLEAR_BIT(REG, BIT) \
234+
do { \
235+
uint32_t val; \
236+
do { \
237+
val = __LDREXW((__IO uint32_t *)&(REG)) & ~(BIT); \
238+
} while ((__STREXW(val,(__IO uint32_t *)&(REG))) != 0U); \
239+
} while(0)
240+
241+
/* Atomic 32-bit register access macro to clear and set one or several bits */
242+
#define ATOMIC_MODIFY_REG(REG, CLEARMSK, SETMASK) \
243+
do { \
244+
uint32_t val; \
245+
do { \
246+
val = (__LDREXW((__IO uint32_t *)&(REG)) & ~(CLEARMSK)) | (SETMASK); \
247+
} while ((__STREXW(val,(__IO uint32_t *)&(REG))) != 0U); \
248+
} while(0)
249+
250+
/* Atomic 16-bit register access macro to set one or several bits */
251+
#define ATOMIC_SETH_BIT(REG, BIT) \
252+
do { \
253+
uint16_t val; \
254+
do { \
255+
val = __LDREXH((__IO uint16_t *)&(REG)) | (BIT); \
256+
} while ((__STREXH(val,(__IO uint16_t *)&(REG))) != 0U); \
257+
} while(0)
258+
259+
/* Atomic 16-bit register access macro to clear one or several bits */
260+
#define ATOMIC_CLEARH_BIT(REG, BIT) \
261+
do { \
262+
uint16_t val; \
263+
do { \
264+
val = __LDREXH((__IO uint16_t *)&(REG)) & ~(BIT); \
265+
} while ((__STREXH(val,(__IO uint16_t *)&(REG))) != 0U); \
266+
} while(0)
267+
268+
/* Atomic 16-bit register access macro to clear and set one or several bits */
269+
#define ATOMIC_MODIFYH_REG(REG, CLEARMSK, SETMASK) \
270+
do { \
271+
uint16_t val; \
272+
do { \
273+
val = (__LDREXH((__IO uint16_t *)&(REG)) & ~(CLEARMSK)) | (SETMASK); \
274+
} while ((__STREXH(val,(__IO uint16_t *)&(REG))) != 0U); \
275+
} while(0)
198276

199277
/**
200278
* @}
@@ -221,4 +299,3 @@ typedef enum
221299

222300

223301

224-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

CMSIS/STM32H7xx/Include/system_stm32h7xx.h

+5-7
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
******************************************************************************
77
* @attention
88
*
9-
* <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
10-
* All rights reserved.</center></h2>
9+
* Copyright (c) 2017 STMicroelectronics.
10+
* All rights reserved.
1111
*
12-
* This software component is licensed by ST under BSD 3-Clause license,
13-
* the "License"; You may not use this file except in compliance with the
14-
* License. You may obtain a copy of the License at:
15-
* opensource.org/licenses/BSD-3-Clause
12+
* This software is licensed under terms that can be found in the LICENSE file
13+
* in the root directory of this software component.
14+
* If no LICENSE file comes with this software, it is provided AS-IS.
1615
*
1716
******************************************************************************
1817
*/
@@ -102,4 +101,3 @@ extern void SystemCoreClockUpdate(void);
102101
/**
103102
* @}
104103
*/
105-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

0 commit comments

Comments
 (0)