Skip to content

Commit c4cccce

Browse files
committed
STM32F2: ST CUBE drivers update V1.6.0 => V1.9.2
1 parent b9a61de commit c4cccce

File tree

152 files changed

+102832
-40882
lines changed

Some content is hidden

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

152 files changed

+102832
-40882
lines changed

targets/TARGET_STM/TARGET_STM32F2/STM32Cube_FW/CMSIS/stm32f205xx.h

Lines changed: 13714 additions & 0 deletions
Large diffs are not rendered by default.

targets/TARGET_STM/TARGET_STM32F2/STM32Cube_FW/CMSIS/stm32f207xx.h

Lines changed: 5164 additions & 5161 deletions
Large diffs are not rendered by default.

targets/TARGET_STM/TARGET_STM32F2/STM32Cube_FW/CMSIS/stm32f215xx.h

Lines changed: 13969 additions & 0 deletions
Large diffs are not rendered by default.

targets/TARGET_STM/TARGET_STM32F2/STM32Cube_FW/CMSIS/stm32f217xx.h

Lines changed: 15260 additions & 0 deletions
Large diffs are not rendered by default.

targets/TARGET_STM/TARGET_STM32F2/STM32Cube_FW/CMSIS/stm32f2xx.h

Lines changed: 12 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
******************************************************************************
33
* @file stm32f2xx.h
44
* @author MCD Application Team
5-
* @version V2.2.0
6-
* @date 17-March-2017
75
* @brief CMSIS STM32F2xx Device Peripheral Access Layer Header File.
86
*
97
* The file is the unique include file that the application programmer
@@ -18,29 +16,13 @@
1816
******************************************************************************
1917
* @attention
2018
*
21-
* <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
19+
* <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
20+
* All rights reserved.</center></h2>
2221
*
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
4426
*
4527
******************************************************************************
4628
*/
@@ -99,11 +81,11 @@
9981
#endif /* USE_HAL_DRIVER */
10082

10183
/**
102-
* @brief CMSIS Device version number V2.2.0
84+
* @brief CMSIS Device version number V2.2.4
10385
*/
10486
#define __STM32F2xx_CMSIS_VERSION_MAIN (0x02U) /*!< [31:24] main version */
10587
#define __STM32F2xx_CMSIS_VERSION_SUB1 (0x02U) /*!< [23:16] sub1 version */
106-
#define __STM32F2xx_CMSIS_VERSION_SUB2 (0x00U) /*!< [15:8] sub2 version */
88+
#define __STM32F2xx_CMSIS_VERSION_SUB2 (0x04U) /*!< [15:8] sub2 version */
10789
#define __STM32F2xx_CMSIS_VERSION_RC (0x00U) /*!< [7:0] release candidate */
10890
#define __STM32F2xx_CMSIS_VERSION ((__STM32F2xx_CMSIS_VERSION_MAIN << 24)\
10991
|(__STM32F2xx_CMSIS_VERSION_SUB1 << 16)\
@@ -139,21 +121,21 @@
139121
*/
140122
typedef enum
141123
{
142-
RESET = 0,
124+
RESET = 0U,
143125
SET = !RESET
144126
} FlagStatus, ITStatus;
145127

146128
typedef enum
147129
{
148-
DISABLE = 0,
130+
DISABLE = 0U,
149131
ENABLE = !DISABLE
150132
} FunctionalState;
151133
#define IS_FUNCTIONAL_STATE(STATE) (((STATE) == DISABLE) || ((STATE) == ENABLE))
152134

153135
typedef enum
154136
{
155-
ERROR = 0,
156-
SUCCESS = !ERROR
137+
SUCCESS = 0U,
138+
ERROR = !SUCCESS
157139
} ErrorStatus;
158140

159141
/**

targets/TARGET_STM/TARGET_STM32F2/STM32Cube_FW/CMSIS/system_stm32f2xx.h

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,20 @@
22
******************************************************************************
33
* @file system_stm32f2xx.h
44
* @author MCD Application Team
5-
* @version V2.2.0
6-
* @date 17-March-2017
7-
* @brief CMSIS Cortex-M3 Device System Source File for STM32F2xx devices.
8-
******************************************************************************
5+
* @brief CMSIS Cortex-M3 Device System Source File for STM32F2xx devices.
6+
****************************************************************************
97
* @attention
108
*
11-
* <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
9+
* <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
10+
* All rights reserved.</center></h2>
1211
*
13-
* Redistribution and use in source and binary forms, with or without modification,
14-
* are permitted provided that the following conditions are met:
15-
* 1. Redistributions of source code must retain the above copyright notice,
16-
* this list of conditions and the following disclaimer.
17-
* 2. Redistributions in binary form must reproduce the above copyright notice,
18-
* this list of conditions and the following disclaimer in the documentation
19-
* and/or other materials provided with the distribution.
20-
* 3. Neither the name of STMicroelectronics nor the names of its contributors
21-
* may be used to endorse or promote products derived from this software
22-
* without specific prior written permission.
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
2316
*
24-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
28-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
31-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
32-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34-
*
35-
******************************************************************************
36-
*/
17+
******************************************************************************
18+
*/
3719

3820
/** @addtogroup CMSIS
3921
* @{

targets/TARGET_STM/TARGET_STM32F2/STM32Cube_FW/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
target_sources(mbed-core
55
INTERFACE
6+
STM32F2xx_HAL_Driver/Legacy/stm32f2xx_hal_can_legacy.c
67
STM32F2xx_HAL_Driver/stm32f2xx_hal.c
78
STM32F2xx_HAL_Driver/stm32f2xx_hal_adc.c
89
STM32F2xx_HAL_Driver/stm32f2xx_hal_adc_ex.c
@@ -13,9 +14,11 @@ target_sources(mbed-core
1314
STM32F2xx_HAL_Driver/stm32f2xx_hal_dac.c
1415
STM32F2xx_HAL_Driver/stm32f2xx_hal_dac_ex.c
1516
STM32F2xx_HAL_Driver/stm32f2xx_hal_dcmi.c
17+
STM32F2xx_HAL_Driver/stm32f2xx_hal_dcmi_ex.c
1618
STM32F2xx_HAL_Driver/stm32f2xx_hal_dma.c
1719
STM32F2xx_HAL_Driver/stm32f2xx_hal_dma_ex.c
1820
STM32F2xx_HAL_Driver/stm32f2xx_hal_eth.c
21+
STM32F2xx_HAL_Driver/stm32f2xx_hal_exti.c
1922
STM32F2xx_HAL_Driver/stm32f2xx_hal_flash.c
2023
STM32F2xx_HAL_Driver/stm32f2xx_hal_flash_ex.c
2124
STM32F2xx_HAL_Driver/stm32f2xx_hal_gpio.c

0 commit comments

Comments
 (0)