Skip to content

STM32G0 update drivers version to CUBE V1.4.1 #14539

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion targets/TARGET_STM/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ This table summarizes the STM32Cube versions currently used in Mbed OS master br
| F3 | 1.9.0 | https://github.com/STMicroelectronics/STM32CubeF3 |
| F4 | 1.26.0 | https://github.com/STMicroelectronics/STM32CubeF4 |
| F7 | 1.16.0 | https://github.com/STMicroelectronics/STM32CubeF7 |
| G0 | 1.3.0 | https://github.com/STMicroelectronics/STM32CubeG0 |
| G0 | 1.4.1 | https://github.com/STMicroelectronics/STM32CubeG0 |
| G4 | 1.1.0 | https://github.com/STMicroelectronics/STM32CubeG4 |
| H7 | 1.8.0 | https://github.com/STMicroelectronics/STM32CubeH7 |
| L0 | 1.11.3 | https://github.com/STMicroelectronics/STM32CubeL0 |
Expand Down
94 changes: 35 additions & 59 deletions targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/stm32g030xx.h

Large diffs are not rendered by default.

150 changes: 63 additions & 87 deletions targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/stm32g031xx.h

Large diffs are not rendered by default.

198 changes: 88 additions & 110 deletions targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/stm32g041xx.h

Large diffs are not rendered by default.

7,453 changes: 7,453 additions & 0 deletions targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/stm32g050xx.h

Large diffs are not rendered by default.

8,405 changes: 8,405 additions & 0 deletions targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/stm32g051xx.h

Large diffs are not rendered by default.

8,713 changes: 8,713 additions & 0 deletions targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/stm32g061xx.h

Large diffs are not rendered by default.

145 changes: 63 additions & 82 deletions targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/stm32g070xx.h

Large diffs are not rendered by default.

199 changes: 95 additions & 104 deletions targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/stm32g071xx.h

Large diffs are not rendered by default.

199 changes: 95 additions & 104 deletions targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/stm32g081xx.h

Large diffs are not rendered by default.

9,239 changes: 9,239 additions & 0 deletions targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/stm32g0b0xx.h

Large diffs are not rendered by default.

11,169 changes: 11,169 additions & 0 deletions targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/stm32g0b1xx.h

Large diffs are not rendered by default.

11,477 changes: 11,477 additions & 0 deletions targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/stm32g0c1xx.h

Large diffs are not rendered by default.

33 changes: 27 additions & 6 deletions targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/CMSIS/stm32g0xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
* <h2><center>&copy; Copyright (c) 2018 STMicroelectronics.
* All rights reserved.</center></h2>
*
* This software component is licensed by ST under BSD 3-Clause license,
* the "License"; You may not use this file except in compliance with the
* This software component is licensed by ST under Apache License, Version 2.0,
* the "License"; You may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
* opensource.org/licenses/BSD-3-Clause
* opensource.org/licenses/Apache-2.0
*
******************************************************************************
*/
Expand Down Expand Up @@ -57,10 +57,19 @@
application
*/

#if !defined (STM32G071xx) && !defined (STM32G081xx) && !defined (STM32G070xx) && !defined (STM32G030xx) && !defined (STM32G031xx) && !defined (STM32G041xx)
#if !defined (STM32G071xx) && !defined (STM32G081xx) && !defined (STM32G070xx) \
&& !defined (STM32G030xx) && !defined (STM32G031xx) && !defined (STM32G041xx) \
&& !defined (STM32G0B0xx) && !defined (STM32G0B1xx) && !defined (STM32G0C1xx) \
&& !defined (STM32G050xx) && !defined (STM32G051xx) && !defined (STM32G061xx)
/* #define STM32G0B0xx */ /*!< STM32G0B0xx Devices */
/* #define STM32G0B1xx */ /*!< STM32G0B1xx Devices */
/* #define STM32G0C1xx */ /*!< STM32G0C1xx Devices */
/* #define STM32G070xx */ /*!< STM32G070xx Devices */
/* #define STM32G071xx */ /*!< STM32G071xx Devices */
/* #define STM32G081xx */ /*!< STM32G081xx Devices */
/* #define STM32G050xx */ /*!< STM32G050xx Devices */
/* #define STM32G051xx */ /*!< STM32G051xx Devices */
/* #define STM32G061xx */ /*!< STM32G061xx Devices */
/* #define STM32G030xx */ /*!< STM32G030xx Devices */
/* #define STM32G031xx */ /*!< STM32G031xx Devices */
/* #define STM32G041xx */ /*!< STM32G041xx Devices */
Expand All @@ -82,7 +91,7 @@
* @brief CMSIS Device version number $VERSION$
*/
#define __STM32G0_CMSIS_VERSION_MAIN (0x01U) /*!< [31:24] main version */
#define __STM32G0_CMSIS_VERSION_SUB1 (0x03U) /*!< [23:16] sub1 version */
#define __STM32G0_CMSIS_VERSION_SUB1 (0x04U) /*!< [23:16] sub1 version */
#define __STM32G0_CMSIS_VERSION_SUB2 (0x00U) /*!< [15:8] sub2 version */
#define __STM32G0_CMSIS_VERSION_RC (0x00U) /*!< [7:0] release candidate */
#define __STM32G0_CMSIS_VERSION ((__STM32G0_CMSIS_VERSION_MAIN << 24)\
Expand All @@ -98,7 +107,13 @@
* @{
*/

#if defined(STM32G071xx)
#if defined(STM32G0B1xx)
#include "stm32g0b1xx.h"
#elif defined(STM32G0C1xx)
#include "stm32g0c1xx.h"
#elif defined(STM32G0B0xx)
#include "stm32g0b0xx.h"
#elif defined(STM32G071xx)
#include "stm32g071xx.h"
#elif defined(STM32G081xx)
#include "stm32g081xx.h"
Expand All @@ -110,6 +125,12 @@
#include "stm32g041xx.h"
#elif defined(STM32G030xx)
#include "stm32g030xx.h"
#elif defined(STM32G051xx)
#include "stm32g051xx.h"
#elif defined(STM32G061xx)
#include "stm32g061xx.h"
#elif defined(STM32G050xx)
#include "stm32g050xx.h"
#else
#error "Please select first the target STM32G0xx device used in your application (in stm32g0xx.h file)"
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
* <h2><center>&copy; Copyright (c) 2018 STMicroelectronics.
* All rights reserved.</center></h2>
*
* This software component is licensed by ST under BSD 3-Clause license,
* the "License"; You may not use this file except in compliance with the
* This software component is licensed by ST under Apache License, Version 2.0,
* the "License"; You may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
* opensource.org/licenses/BSD-3-Clause
* opensource.org/licenses/Apache-2.0
*
******************************************************************************
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ add_library(mbed-stm32g0cube-fw INTERFACE)

target_sources(mbed-stm32g0cube-fw
INTERFACE

STM32G0xx_HAL_Driver/stm32g0xx_hal.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_adc.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_adc_ex.c
Expand All @@ -21,15 +20,19 @@ target_sources(mbed-stm32g0cube-fw
STM32G0xx_HAL_Driver/stm32g0xx_hal_dma.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_dma_ex.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_exti.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_fdcan.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_flash.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_flash_ex.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_gpio.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_hcd.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_i2c.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_i2c_ex.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_i2s.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_irda.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_iwdg.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_lptim.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_pcd.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_pcd_ex.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_pwr.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_pwr_ex.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_rcc.c
Expand All @@ -52,6 +55,7 @@ target_sources(mbed-stm32g0cube-fw
STM32G0xx_HAL_Driver/stm32g0xx_ll_adc.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_comp.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_crc.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_crs.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_dac.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_dma.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_exti.c
Expand All @@ -67,6 +71,7 @@ target_sources(mbed-stm32g0cube-fw
STM32G0xx_HAL_Driver/stm32g0xx_ll_tim.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_ucpd.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_usart.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_usb.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_utils.c
system_stm32g0xx.c
)
Expand Down
Loading