Skip to content

Commit 924652d

Browse files
authored
Merge pull request #14539 from JeanMarcR/STM32G0_NEW_CUBE
STM32G0 update drivers version to CUBE V1.4.1
2 parents a02c3a1 + 283bf81 commit 924652d

File tree

137 files changed

+89975
-7352
lines changed

Some content is hidden

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

137 files changed

+89975
-7352
lines changed

targets/TARGET_STM/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ This table summarizes the STM32Cube versions currently used in Mbed OS master br
6767
| F3 | 1.9.0 | https://github.com/STMicroelectronics/STM32CubeF3 |
6868
| F4 | 1.26.0 | https://github.com/STMicroelectronics/STM32CubeF4 |
6969
| F7 | 1.16.0 | https://github.com/STMicroelectronics/STM32CubeF7 |
70-
| G0 | 1.3.0 | https://github.com/STMicroelectronics/STM32CubeG0 |
70+
| G0 | 1.4.1 | https://github.com/STMicroelectronics/STM32CubeG0 |
7171
| G4 | 1.1.0 | https://github.com/STMicroelectronics/STM32CubeG4 |
7272
| H7 | 1.8.0 | https://github.com/STMicroelectronics/STM32CubeH7 |
7373
| L0 | 1.11.3 | https://github.com/STMicroelectronics/STM32CubeL0 |

targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/stm32g030xx.h

Lines changed: 35 additions & 59 deletions
Large diffs are not rendered by default.

targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/stm32g031xx.h

Lines changed: 63 additions & 87 deletions
Large diffs are not rendered by default.

targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/stm32g041xx.h

Lines changed: 88 additions & 110 deletions
Large diffs are not rendered by default.

targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/stm32g050xx.h

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

targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/stm32g051xx.h

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

targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/stm32g061xx.h

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

targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/stm32g070xx.h

Lines changed: 63 additions & 82 deletions
Large diffs are not rendered by default.

targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/stm32g071xx.h

Lines changed: 95 additions & 104 deletions
Large diffs are not rendered by default.

targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/stm32g081xx.h

Lines changed: 95 additions & 104 deletions
Large diffs are not rendered by default.

targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/stm32g0b0xx.h

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

targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/stm32g0b1xx.h

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

targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/stm32g0c1xx.h

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

targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/stm32g0xx.h

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
* <h2><center>&copy; Copyright (c) 2018 STMicroelectronics.
2020
* All rights reserved.</center></h2>
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
22+
* This software component is licensed by ST under Apache License, Version 2.0,
23+
* the "License"; You may not use this file except in compliance with the
2424
* License. You may obtain a copy of the License at:
25-
* opensource.org/licenses/BSD-3-Clause
25+
* opensource.org/licenses/Apache-2.0
2626
*
2727
******************************************************************************
2828
*/
@@ -57,10 +57,19 @@
5757
application
5858
*/
5959

60-
#if !defined (STM32G071xx) && !defined (STM32G081xx) && !defined (STM32G070xx) && !defined (STM32G030xx) && !defined (STM32G031xx) && !defined (STM32G041xx)
60+
#if !defined (STM32G071xx) && !defined (STM32G081xx) && !defined (STM32G070xx) \
61+
&& !defined (STM32G030xx) && !defined (STM32G031xx) && !defined (STM32G041xx) \
62+
&& !defined (STM32G0B0xx) && !defined (STM32G0B1xx) && !defined (STM32G0C1xx) \
63+
&& !defined (STM32G050xx) && !defined (STM32G051xx) && !defined (STM32G061xx)
64+
/* #define STM32G0B0xx */ /*!< STM32G0B0xx Devices */
65+
/* #define STM32G0B1xx */ /*!< STM32G0B1xx Devices */
66+
/* #define STM32G0C1xx */ /*!< STM32G0C1xx Devices */
6167
/* #define STM32G070xx */ /*!< STM32G070xx Devices */
6268
/* #define STM32G071xx */ /*!< STM32G071xx Devices */
6369
/* #define STM32G081xx */ /*!< STM32G081xx Devices */
70+
/* #define STM32G050xx */ /*!< STM32G050xx Devices */
71+
/* #define STM32G051xx */ /*!< STM32G051xx Devices */
72+
/* #define STM32G061xx */ /*!< STM32G061xx Devices */
6473
/* #define STM32G030xx */ /*!< STM32G030xx Devices */
6574
/* #define STM32G031xx */ /*!< STM32G031xx Devices */
6675
/* #define STM32G041xx */ /*!< STM32G041xx Devices */
@@ -82,7 +91,7 @@
8291
* @brief CMSIS Device version number $VERSION$
8392
*/
8493
#define __STM32G0_CMSIS_VERSION_MAIN (0x01U) /*!< [31:24] main version */
85-
#define __STM32G0_CMSIS_VERSION_SUB1 (0x03U) /*!< [23:16] sub1 version */
94+
#define __STM32G0_CMSIS_VERSION_SUB1 (0x04U) /*!< [23:16] sub1 version */
8695
#define __STM32G0_CMSIS_VERSION_SUB2 (0x00U) /*!< [15:8] sub2 version */
8796
#define __STM32G0_CMSIS_VERSION_RC (0x00U) /*!< [7:0] release candidate */
8897
#define __STM32G0_CMSIS_VERSION ((__STM32G0_CMSIS_VERSION_MAIN << 24)\
@@ -98,7 +107,13 @@
98107
* @{
99108
*/
100109

101-
#if defined(STM32G071xx)
110+
#if defined(STM32G0B1xx)
111+
#include "stm32g0b1xx.h"
112+
#elif defined(STM32G0C1xx)
113+
#include "stm32g0c1xx.h"
114+
#elif defined(STM32G0B0xx)
115+
#include "stm32g0b0xx.h"
116+
#elif defined(STM32G071xx)
102117
#include "stm32g071xx.h"
103118
#elif defined(STM32G081xx)
104119
#include "stm32g081xx.h"
@@ -110,6 +125,12 @@
110125
#include "stm32g041xx.h"
111126
#elif defined(STM32G030xx)
112127
#include "stm32g030xx.h"
128+
#elif defined(STM32G051xx)
129+
#include "stm32g051xx.h"
130+
#elif defined(STM32G061xx)
131+
#include "stm32g061xx.h"
132+
#elif defined(STM32G050xx)
133+
#include "stm32g050xx.h"
113134
#else
114135
#error "Please select first the target STM32G0xx device used in your application (in stm32g0xx.h file)"
115136
#endif

targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/system_stm32g0xx.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
* <h2><center>&copy; Copyright (c) 2018 STMicroelectronics.
1010
* All rights reserved.</center></h2>
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
12+
* This software component is licensed by ST under Apache License, Version 2.0,
13+
* the "License"; You may not use this file except in compliance with the
1414
* License. You may obtain a copy of the License at:
15-
* opensource.org/licenses/BSD-3-Clause
15+
* opensource.org/licenses/Apache-2.0
1616
*
1717
******************************************************************************
1818
*/

targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ add_library(mbed-stm32g0cube-fw INTERFACE)
55

66
target_sources(mbed-stm32g0cube-fw
77
INTERFACE
8-
98
STM32G0xx_HAL_Driver/stm32g0xx_hal.c
109
STM32G0xx_HAL_Driver/stm32g0xx_hal_adc.c
1110
STM32G0xx_HAL_Driver/stm32g0xx_hal_adc_ex.c
@@ -21,15 +20,19 @@ target_sources(mbed-stm32g0cube-fw
2120
STM32G0xx_HAL_Driver/stm32g0xx_hal_dma.c
2221
STM32G0xx_HAL_Driver/stm32g0xx_hal_dma_ex.c
2322
STM32G0xx_HAL_Driver/stm32g0xx_hal_exti.c
23+
STM32G0xx_HAL_Driver/stm32g0xx_hal_fdcan.c
2424
STM32G0xx_HAL_Driver/stm32g0xx_hal_flash.c
2525
STM32G0xx_HAL_Driver/stm32g0xx_hal_flash_ex.c
2626
STM32G0xx_HAL_Driver/stm32g0xx_hal_gpio.c
27+
STM32G0xx_HAL_Driver/stm32g0xx_hal_hcd.c
2728
STM32G0xx_HAL_Driver/stm32g0xx_hal_i2c.c
2829
STM32G0xx_HAL_Driver/stm32g0xx_hal_i2c_ex.c
2930
STM32G0xx_HAL_Driver/stm32g0xx_hal_i2s.c
3031
STM32G0xx_HAL_Driver/stm32g0xx_hal_irda.c
3132
STM32G0xx_HAL_Driver/stm32g0xx_hal_iwdg.c
3233
STM32G0xx_HAL_Driver/stm32g0xx_hal_lptim.c
34+
STM32G0xx_HAL_Driver/stm32g0xx_hal_pcd.c
35+
STM32G0xx_HAL_Driver/stm32g0xx_hal_pcd_ex.c
3336
STM32G0xx_HAL_Driver/stm32g0xx_hal_pwr.c
3437
STM32G0xx_HAL_Driver/stm32g0xx_hal_pwr_ex.c
3538
STM32G0xx_HAL_Driver/stm32g0xx_hal_rcc.c
@@ -52,6 +55,7 @@ target_sources(mbed-stm32g0cube-fw
5255
STM32G0xx_HAL_Driver/stm32g0xx_ll_adc.c
5356
STM32G0xx_HAL_Driver/stm32g0xx_ll_comp.c
5457
STM32G0xx_HAL_Driver/stm32g0xx_ll_crc.c
58+
STM32G0xx_HAL_Driver/stm32g0xx_ll_crs.c
5559
STM32G0xx_HAL_Driver/stm32g0xx_ll_dac.c
5660
STM32G0xx_HAL_Driver/stm32g0xx_ll_dma.c
5761
STM32G0xx_HAL_Driver/stm32g0xx_ll_exti.c
@@ -67,6 +71,7 @@ target_sources(mbed-stm32g0cube-fw
6771
STM32G0xx_HAL_Driver/stm32g0xx_ll_tim.c
6872
STM32G0xx_HAL_Driver/stm32g0xx_ll_ucpd.c
6973
STM32G0xx_HAL_Driver/stm32g0xx_ll_usart.c
74+
STM32G0xx_HAL_Driver/stm32g0xx_ll_usb.c
7075
STM32G0xx_HAL_Driver/stm32g0xx_ll_utils.c
7176
system_stm32g0xx.c
7277
)

0 commit comments

Comments
 (0)