|
2 | 2 | ******************************************************************************
|
3 | 3 | * @file stm32h7xx.h
|
4 | 4 | * @author MCD Application Team
|
5 |
| - * @version V1.2.0 |
6 |
| - * @date 29-December-2017 |
7 | 5 | * @brief CMSIS STM32H7xx Device Peripheral Access Layer Header File.
|
8 | 6 | *
|
9 | 7 | * The file is the unique include file that the application programmer
|
|
18 | 16 | ******************************************************************************
|
19 | 17 | * @attention
|
20 | 18 | *
|
21 |
| - * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2> |
| 19 | + * <h2><center>© Copyright (c) 2017 STMicroelectronics. |
| 20 | + * All rights reserved.</center></h2> |
22 | 21 | *
|
23 |
| - * Redistribution and use in source and binary forms, with or without modification, |
24 |
| - * are permitted provided that the following conditions are met: |
25 |
| - * 1. Redistributions of source code must retain the above copyright notice, |
26 |
| - * this list of conditions and the following disclaimer. |
27 |
| - * 2. Redistributions in binary form must reproduce the above copyright notice, |
28 |
| - * this list of conditions and the following disclaimer in the documentation |
29 |
| - * and/or other materials provided with the distribution. |
30 |
| - * 3. Neither the name of STMicroelectronics nor the names of its contributors |
31 |
| - * may be used to endorse or promote products derived from this software |
32 |
| - * without specific prior written permission. |
33 |
| - * |
34 |
| - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
35 |
| - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
36 |
| - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
37 |
| - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
38 |
| - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
39 |
| - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
40 |
| - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
41 |
| - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
42 |
| - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
43 |
| - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 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 |
44 | 26 | *
|
45 | 27 | ******************************************************************************
|
46 | 28 | */
|
|
76 | 58 | application
|
77 | 59 | */
|
78 | 60 |
|
79 |
| -#if !defined (STM32H743xx) && !defined (STM32H753xx) |
80 |
| - /* #define STM32H743xx */ /*!< STM32H743VI, STM32H743ZI, STM32H743II, STM32H743BI, STM32H743XI Devices */ |
81 |
| - /* #define STM32H753xx */ /*!< STM32H753VI, STM32H753ZI, STM32H753II, STM32H753BI, STM32H753XI Devices */ |
| 61 | +#if !defined (STM32H743xx) && !defined (STM32H753xx) && !defined (STM32H750xx) && !defined (STM32H742xx) && \ |
| 62 | + !defined (STM32H745xx) && !defined (STM32H755xx) && !defined (STM32H747xx) && !defined (STM32H757xx) |
| 63 | + /* #define STM32H742xx */ /*!< STM32H742VI, STM32H742ZI, STM32H742AI, STM32H742II, STM32H742BI, STM32H742XI Devices */ |
| 64 | + /* #define STM32H743xx */ /*!< STM32H743VI, STM32H743ZI, STM32H743AI, STM32H743II, STM32H743BI, STM32H743XI Devices */ |
| 65 | + /* #define STM32H753xx */ /*!< STM32H753VI, STM32H753ZI, STM32H753AI, STM32H753II, STM32H753BI, STM32H753XI Devices */ |
| 66 | + /* #define STM32H750xx */ /*!< STM32H750V, STM32H750I, STM32H750X Devices */ |
| 67 | + /* #define STM32H747xx */ /*!< STM32H747ZI, STM32H747AI, STM32H747II, STM32H747BI, STM32H747XI Devices */ |
| 68 | + /* #define STM32H757xx */ /*!< STM32H757ZI, STM32H757AI, STM32H757II, STM32H757BI, STM32H757XI Devices */ |
| 69 | + /* #define STM32H745xx */ /*!< STM32H745ZI, STM32H745II, STM32H745BI, STM32H745XI Devices */ |
| 70 | + /* #define STM32H755xx */ /*!< STM32H755ZI, STM32H755II, STM32H755BI, STM32H755XI Devices */ |
82 | 71 | #endif
|
83 | 72 |
|
84 | 73 | /* Tip: To avoid modifying this file each time you need to switch between these
|
85 | 74 | devices, you can define the device in your toolchain compiler preprocessor.
|
86 | 75 | */
|
| 76 | + |
| 77 | +#if defined(DUAL_CORE) && !defined(CORE_CM4) && !defined(CORE_CM7) |
| 78 | + #error "Dual core device, please select CORE_CM4 or CORE_CM7" |
| 79 | +#endif |
| 80 | + |
87 | 81 | #if !defined (USE_HAL_DRIVER)
|
88 | 82 | /**
|
89 | 83 | * @brief Comment the line below if you will not use the peripherals drivers.
|
|
94 | 88 | #endif /* USE_HAL_DRIVER */
|
95 | 89 |
|
96 | 90 | /**
|
97 |
| - * @brief CMSIS Device version number V1.2.0 |
| 91 | + * @brief CMSIS Device version number V1.5.0 |
98 | 92 | */
|
99 | 93 | #define __STM32H7xx_CMSIS_DEVICE_VERSION_MAIN (0x01) /*!< [31:24] main version */
|
100 |
| -#define __STM32H7xx_CMSIS_DEVICE_VERSION_SUB1 (0x02) /*!< [23:16] sub1 version */ |
| 94 | +#define __STM32H7xx_CMSIS_DEVICE_VERSION_SUB1 (0x05) /*!< [23:16] sub1 version */ |
101 | 95 | #define __STM32H7xx_CMSIS_DEVICE_VERSION_SUB2 (0x00) /*!< [15:8] sub2 version */
|
102 | 96 | #define __STM32H7xx_CMSIS_DEVICE_VERSION_RC (0x00) /*!< [7:0] release candidate */
|
103 | 97 | #define __STM32H7xx_CMSIS_DEVICE_VERSION ((__CMSIS_DEVICE_VERSION_MAIN << 24)\
|
|
117 | 111 | #include "stm32h743xx.h"
|
118 | 112 | #elif defined(STM32H753xx)
|
119 | 113 | #include "stm32h753xx.h"
|
| 114 | +#elif defined(STM32H750xx) |
| 115 | + #include "stm32h750xx.h" |
| 116 | +#elif defined(STM32H742xx) |
| 117 | + #include "stm32h742xx.h" |
| 118 | +#elif defined(STM32H745xx) |
| 119 | + #include "stm32h745xx.h" |
| 120 | +#elif defined(STM32H755xx) |
| 121 | + #include "stm32h755xx.h" |
| 122 | +#elif defined(STM32H747xx) |
| 123 | + #include "stm32h747xx.h" |
| 124 | +#elif defined(STM32H757xx) |
| 125 | + #include "stm32h757xx.h" |
120 | 126 | #else
|
121 | 127 | #error "Please select first the target STM32H7xx device used in your application (in stm32h7xx.h file)"
|
122 | 128 | #endif
|
|
0 commit comments