Skip to content

Commit 9e87ab0

Browse files
authored
Merge pull request #508 from fpistm/CubeFw_update
[HAL/LL/CMSIS] Update F0, F4, G0, H7, L1, L4 and WB series
2 parents a4fb401 + f01ab2a commit 9e87ab0

File tree

784 files changed

+363645
-169738
lines changed

Some content is hidden

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

784 files changed

+363645
-169738
lines changed

cores/arduino/stm32/HAL/stm32yyxx_hal_dsi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
#ifdef STM32F7xx
55
#include "stm32f7xx_hal_dsi.c"
66
#endif
7+
#ifdef STM32H7xx
8+
#include "stm32h7xx_hal_dsi.c"
9+
#endif
710
#ifdef STM32L4xx
811
#include "stm32l4xx_hal_dsi.c"
912
#endif

cores/arduino/stm32/HAL/stm32yyxx_hal_ltdc_ex.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
#ifdef STM32F7xx
55
#include "stm32f7xx_hal_ltdc_ex.c"
66
#endif
7+
#ifdef STM32H7xx
8+
#include "stm32h7xx_hal_ltdc_ex.c"
9+
#endif
710
#ifdef STM32L4xx
811
#include "stm32l4xx_hal_ltdc_ex.c"
912
#endif

cores/arduino/stm32/HAL/stm32yyxx_hal_mmc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@
1313
#ifdef STM32H7xx
1414
#include "stm32h7xx_hal_mmc.c"
1515
#endif
16+
#ifdef STM32L4xx
17+
#include "stm32l4xx_hal_mmc.c"
18+
#endif
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
#ifdef STM32H7xx
22
#include "stm32h7xx_hal_mmc_ex.c"
33
#endif
4+
#ifdef STM32L4xx
5+
#include "stm32l4xx_hal_mmc_ex.c"
6+
#endif

cores/arduino/stm32/HAL/stm32yyxx_hal_msp_template.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
#ifdef STM32G0xx
2121
#include "stm32g0xx_hal_msp_template.c"
2222
#endif
23+
#ifdef STM32H7xx
24+
#include "stm32h7xx_hal_msp_template.c"
25+
#endif
2326
#ifdef STM32L0xx
2427
#include "stm32l0xx_hal_msp_template.c"
2528
#endif

cores/arduino/stm32/HAL/stm32yyxx_hal_spi_ex.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
#ifdef STM32H7xx
1717
#include "stm32h7xx_hal_spi_ex.c"
1818
#endif
19-
#ifdef STM32L1xx
20-
#include "stm32l1xx_hal_spi_ex.c"
21-
#endif
2219
#ifdef STM32L4xx
2320
#include "stm32l4xx_hal_spi_ex.c"
2421
#endif

cores/arduino/stm32/HAL/stm32yyxx_hal_timebase_rtc_alarm_template.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
#ifdef STM32G0xx
2121
#include "stm32g0xx_hal_timebase_rtc_alarm_template.c"
2222
#endif
23+
#ifdef STM32H7xx
24+
#include "stm32h7xx_hal_timebase_rtc_alarm_template.c"
25+
#endif
2326
#ifdef STM32WBxx
2427
#include "stm32wbxx_hal_timebase_rtc_alarm_template.c"
2528
#endif

cores/arduino/stm32/HAL/stm32yyxx_hal_timebase_rtc_wakeup_template.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
#ifdef STM32G0xx
1818
#include "stm32g0xx_hal_timebase_rtc_wakeup_template.c"
1919
#endif
20+
#ifdef STM32H7xx
21+
#include "stm32h7xx_hal_timebase_rtc_wakeup_template.c"
22+
#endif
2023
#ifdef STM32WBxx
2124
#include "stm32wbxx_hal_timebase_rtc_wakeup_template.c"
2225
#endif

cores/arduino/stm32/HAL/stm32yyxx_hal_timebase_tim_template.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
#ifdef STM32G0xx
2121
#include "stm32g0xx_hal_timebase_tim_template.c"
2222
#endif
23+
#ifdef STM32H7xx
24+
#include "stm32h7xx_hal_timebase_tim_template.c"
25+
#endif
2326
#ifdef STM32L1xx
2427
#include "stm32l1xx_hal_timebase_tim_template.c"
2528
#endif

cores/arduino/stm32/LL/stm32yyxx_ll_usb.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
#ifdef STM32L0xx
1717
#include "stm32l0xx_ll_usb.c"
1818
#endif
19+
#ifdef STM32L1xx
20+
#include "stm32l1xx_ll_usb.c"
21+
#endif
1922
#ifdef STM32L4xx
2023
#include "stm32l4xx_ll_usb.c"
2124
#endif

cores/arduino/stm32/LL/stm32yyxx_ll_usb.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
#ifdef STM32L0xx
2424
#include "stm32l0xx_ll_usb.h"
2525
#endif
26+
#ifdef STM32L1xx
27+
#include "stm32l1xx_ll_usb.h"
28+
#endif
2629
#ifdef STM32L4xx
2730
#include "stm32l4xx_ll_usb.h"
2831
#endif

cores/arduino/stm32/stm32_def_build.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,22 @@
184184
#define CMSIS_STARTUP_FILE "startup_stm32g071xx.s"
185185
#elif defined(STM32G081xx)
186186
#define CMSIS_STARTUP_FILE "startup_stm32g081xx.s"
187+
#elif defined(STM32H742xx)
188+
#define CMSIS_STARTUP_FILE "startup_stm32h742xx.s"
187189
#elif defined(STM32H743xx)
188190
#define CMSIS_STARTUP_FILE "startup_stm32h743xx.s"
191+
#elif defined(STM32H745xx)
192+
#define CMSIS_STARTUP_FILE "startup_stm32h745xx.s"
193+
#elif defined(STM32H747xx)
194+
#define CMSIS_STARTUP_FILE "startup_stm32h747xx.s"
189195
#elif defined(STM32H750xx)
190196
#define CMSIS_STARTUP_FILE "startup_stm32h750xx.s"
191197
#elif defined(STM32H753xx)
192198
#define CMSIS_STARTUP_FILE "startup_stm32h753xx.s"
199+
#elif defined(STM32H755xx)
200+
#define CMSIS_STARTUP_FILE "startup_stm32h755xx.s"
201+
#elif defined(STM32H757xx)
202+
#define CMSIS_STARTUP_FILE "startup_stm32h757xx.s"
193203
#elif defined(STM32L010x4)
194204
#define CMSIS_STARTUP_FILE "startup_stm32l010x4.s"
195205
#elif defined(STM32L010x6)

cores/arduino/stm32/twi.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ void HAL_I2C_AddrCallback(I2C_HandleTypeDef *hi2c, uint8_t TransferDirection, ui
474474
if (obj->i2c_onSlaveTransmit != NULL) {
475475
obj->i2c_onSlaveTransmit();
476476
}
477-
#if defined(STM32F4xx) || defined(STM32L0xx)
477+
#if defined(STM32F4xx) || defined(STM32L0xx) || defined(STM32L1xx)
478478
HAL_I2C_Slave_Seq_Transmit_IT(hi2c, (uint8_t *) obj->i2cTxRxBuffer,
479479
obj->i2cTxRxBufferSize, I2C_LAST_FRAME);
480480
#else
@@ -486,7 +486,7 @@ void HAL_I2C_AddrCallback(I2C_HandleTypeDef *hi2c, uint8_t TransferDirection, ui
486486
obj->slaveMode = SLAVE_MODE_RECEIVE;
487487
/* We don't know in advance how many bytes will be sent by master so
488488
* we'll fetch one by one until master ends the sequence */
489-
#if defined(STM32F4xx) || defined(STM32L0xx)
489+
#if defined(STM32F4xx) || defined(STM32L0xx) || defined(STM32L1xx)
490490
HAL_I2C_Slave_Seq_Receive_IT(hi2c, (uint8_t *) & (obj->i2cTxRxBuffer[obj->slaveRxNbData]),
491491
1, I2C_NEXT_FRAME);
492492
#else
@@ -537,7 +537,7 @@ void HAL_I2C_SlaveRxCpltCallback(I2C_HandleTypeDef *hi2c)
537537
}
538538
/* Restart interrupt mode for next Byte */
539539
if (obj->slaveMode == SLAVE_MODE_RECEIVE) {
540-
#if defined(STM32F4xx) || defined(STM32L0xx)
540+
#if defined(STM32F4xx) || defined(STM32L0xx) || defined(STM32L1xx)
541541
HAL_I2C_Slave_Seq_Receive_IT(hi2c, (uint8_t *) & (obj->i2cTxRxBuffer[obj->slaveRxNbData]),
542542
1, I2C_NEXT_FRAME);
543543
#else

cores/arduino/stm32/usb/usbd_conf.c

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,12 @@ void HAL_PCD_MspInit(PCD_HandleTypeDef *hpcd)
141141

142142
if (hpcd->Init.low_power_enable == 1) {
143143
/* Enable EXTI Line 18 for USB wakeup */
144+
#ifdef __HAL_USB_OTG_FS_WAKEUP_EXTI_CLEAR_FLAG
144145
__HAL_USB_OTG_FS_WAKEUP_EXTI_CLEAR_FLAG();
146+
#endif
147+
#ifdef __HAL_USB_OTG_FS_WAKEUP_EXTI_ENABLE_RISING_EDGE
145148
__HAL_USB_OTG_FS_WAKEUP_EXTI_ENABLE_RISING_EDGE();
149+
#endif
146150
__HAL_USB_OTG_FS_WAKEUP_EXTI_ENABLE_IT();
147151
#if !defined(STM32L4xx)
148152
/* Set EXTI Wakeup Interrupt priority */
@@ -177,8 +181,12 @@ void HAL_PCD_MspInit(PCD_HandleTypeDef *hpcd)
177181

178182
if (hpcd->Init.low_power_enable == 1) {
179183
/* Enable EXTI Line 20 for USB wakeup */
184+
#ifdef __HAL_USB_OTG_HS_WAKEUP_EXTI_CLEAR_FLAG
180185
__HAL_USB_OTG_HS_WAKEUP_EXTI_CLEAR_FLAG();
186+
#endif
187+
#ifdef __HAL_USB_OTG_HS_WAKEUP_EXTI_ENABLE_RISING_EDGE
181188
__HAL_USB_OTG_HS_WAKEUP_EXTI_ENABLE_RISING_EDGE();
189+
#endif
182190
__HAL_USB_OTG_HS_WAKEUP_EXTI_ENABLE_IT();
183191

184192
/* Set EXTI Wakeup Interrupt priority */
@@ -434,13 +442,13 @@ void USBWakeUp_IRQHandler(void)
434442
/* ungate PHY clock */
435443
__HAL_PCD_UNGATE_PHYCLOCK((&g_hpcd));
436444
}
437-
#ifdef USE_USB_HS
445+
#ifdef USE_USB_HS && defined(__HAL_USB_OTG_HS_WAKEUP_EXTI_CLEAR_FLAG)
438446
/* Clear EXTI pending Bit*/
439447
__HAL_USB_OTG_HS_WAKEUP_EXTI_CLEAR_FLAG();
440-
#elif defined(USB_OTG_FS)
448+
#elif defined(USB_OTG_FS) && defined(__HAL_USB_OTG_FS_WAKEUP_EXTI_CLEAR_FLAG)
441449
/* Clear EXTI pending Bit*/
442450
__HAL_USB_OTG_FS_WAKEUP_EXTI_CLEAR_FLAG();
443-
#else
451+
#elif defined(__HAL_USB_WAKEUP_EXTI_CLEAR_FLAG)
444452
__HAL_USB_WAKEUP_EXTI_CLEAR_FLAG();
445453
#endif
446454
}

system/Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g030xx.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
******************************************************************************
1515
* @attention
1616
*
17-
* <h2><center>&copy; Copyright (c) 2018 STMicroelectronics.
17+
* <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
1818
* All rights reserved.</center></h2>
1919
*
2020
* This software component is licensed by ST under BSD 3-Clause license,
@@ -1280,9 +1280,10 @@ typedef struct
12801280
#define ADC_CCR_VBATEN_Msk (0x1UL << ADC_CCR_VBATEN_Pos) /*!< 0x01000000 */
12811281
#define ADC_CCR_VBATEN ADC_CCR_VBATEN_Msk /*!< ADC internal path to battery voltage enable */
12821282

1283+
/* Legacy */
12831284
#define ADC_CCR_LFMEN_Pos (25U)
12841285
#define ADC_CCR_LFMEN_Msk (0x1UL << ADC_CCR_LFMEN_Pos) /*!< 0x02000000 */
1285-
#define ADC_CCR_LFMEN ADC_CCR_LFMEN_Msk /*!< ADC common clock low frequency mode */
1286+
#define ADC_CCR_LFMEN ADC_CCR_LFMEN_Msk /*!< Legacy feature, useless on STM32G0 (ADC common clock low frequency mode is automatically managed by ADC peripheral on STM32G0) */
12861287

12871288

12881289
/******************************************************************************/
@@ -7295,7 +7296,9 @@ typedef struct
72957296
((INSTANCE) == TIM3))
72967297

72977298
/******************* TIM Instances : Timer input selection ********************/
7298-
#define IS_TIM_TISEL_INSTANCE(INSTANCE) (((INSTANCE) == TIM14) || \
7299+
#define IS_TIM_TISEL_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
7300+
((INSTANCE) == TIM3) || \
7301+
((INSTANCE) == TIM14) || \
72997302
((INSTANCE) == TIM16) || \
73007303
((INSTANCE) == TIM17))
73017304

system/Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
******************************************************************************
1515
* @attention
1616
*
17-
* <h2><center>&copy; Copyright (c) 2018 STMicroelectronics.
17+
* <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
1818
* All rights reserved.</center></h2>
1919
*
2020
* This software component is licensed by ST under BSD 3-Clause license,
@@ -1323,9 +1323,10 @@ typedef struct
13231323
#define ADC_CCR_VBATEN_Msk (0x1UL << ADC_CCR_VBATEN_Pos) /*!< 0x01000000 */
13241324
#define ADC_CCR_VBATEN ADC_CCR_VBATEN_Msk /*!< ADC internal path to battery voltage enable */
13251325

1326+
/* Legacy */
13261327
#define ADC_CCR_LFMEN_Pos (25U)
13271328
#define ADC_CCR_LFMEN_Msk (0x1UL << ADC_CCR_LFMEN_Pos) /*!< 0x02000000 */
1328-
#define ADC_CCR_LFMEN ADC_CCR_LFMEN_Msk /*!< ADC common clock low frequency mode */
1329+
#define ADC_CCR_LFMEN ADC_CCR_LFMEN_Msk /*!< Legacy feature, useless on STM32G0 (ADC common clock low frequency mode is automatically managed by ADC peripheral on STM32G0) */
13291330

13301331

13311332
/******************************************************************************/

system/Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g041xx.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
******************************************************************************
1515
* @attention
1616
*
17-
* <h2><center>&copy; Copyright (c) 2018 STMicroelectronics.
17+
* <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
1818
* All rights reserved.</center></h2>
1919
*
2020
* This software component is licensed by ST under BSD 3-Clause license,
@@ -1370,9 +1370,10 @@ typedef struct
13701370
#define ADC_CCR_VBATEN_Msk (0x1UL << ADC_CCR_VBATEN_Pos) /*!< 0x01000000 */
13711371
#define ADC_CCR_VBATEN ADC_CCR_VBATEN_Msk /*!< ADC internal path to battery voltage enable */
13721372

1373+
/* Legacy */
13731374
#define ADC_CCR_LFMEN_Pos (25U)
13741375
#define ADC_CCR_LFMEN_Msk (0x1UL << ADC_CCR_LFMEN_Pos) /*!< 0x02000000 */
1375-
#define ADC_CCR_LFMEN ADC_CCR_LFMEN_Msk /*!< ADC common clock low frequency mode */
1376+
#define ADC_CCR_LFMEN ADC_CCR_LFMEN_Msk /*!< Legacy feature, useless on STM32G0 (ADC common clock low frequency mode is automatically managed by ADC peripheral on STM32G0) */
13761377

13771378

13781379
/******************************************************************************/

system/Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g070xx.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,9 +1302,10 @@ typedef struct
13021302
#define ADC_CCR_VBATEN_Msk (0x1UL << ADC_CCR_VBATEN_Pos) /*!< 0x01000000 */
13031303
#define ADC_CCR_VBATEN ADC_CCR_VBATEN_Msk /*!< ADC internal path to battery voltage enable */
13041304

1305+
/* Legacy */
13051306
#define ADC_CCR_LFMEN_Pos (25U)
13061307
#define ADC_CCR_LFMEN_Msk (0x1UL << ADC_CCR_LFMEN_Pos) /*!< 0x02000000 */
1307-
#define ADC_CCR_LFMEN ADC_CCR_LFMEN_Msk /*!< ADC common clock low frequency mode */
1308+
#define ADC_CCR_LFMEN ADC_CCR_LFMEN_Msk /*!< Legacy feature, useless on STM32G0 (ADC common clock low frequency mode is automatically managed by ADC peripheral on STM32G0) */
13081309

13091310

13101311
/******************************************************************************/
@@ -7532,7 +7533,9 @@ typedef struct
75327533
((INSTANCE) == TIM15))
75337534

75347535
/******************* TIM Instances : Timer input selection ********************/
7535-
#define IS_TIM_TISEL_INSTANCE(INSTANCE) (((INSTANCE) == TIM14) || \
7536+
#define IS_TIM_TISEL_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
7537+
((INSTANCE) == TIM3) || \
7538+
((INSTANCE) == TIM14) || \
75367539
((INSTANCE) == TIM15) || \
75377540
((INSTANCE) == TIM16) || \
75387541
((INSTANCE) == TIM17))

system/Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g071xx.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,9 +1439,10 @@ typedef struct
14391439
#define ADC_CCR_VBATEN_Msk (0x1UL << ADC_CCR_VBATEN_Pos) /*!< 0x01000000 */
14401440
#define ADC_CCR_VBATEN ADC_CCR_VBATEN_Msk /*!< ADC internal path to battery voltage enable */
14411441

1442+
/* Legacy */
14421443
#define ADC_CCR_LFMEN_Pos (25U)
14431444
#define ADC_CCR_LFMEN_Msk (0x1UL << ADC_CCR_LFMEN_Pos) /*!< 0x02000000 */
1444-
#define ADC_CCR_LFMEN ADC_CCR_LFMEN_Msk /*!< ADC common clock low frequency mode */
1445+
#define ADC_CCR_LFMEN ADC_CCR_LFMEN_Msk /*!< Legacy feature, useless on STM32G0 (ADC common clock low frequency mode is automatically managed by ADC peripheral on STM32G0) */
14451446

14461447
/******************************************************************************/
14471448
/* */

system/Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g081xx.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1486,9 +1486,10 @@ typedef struct
14861486
#define ADC_CCR_VBATEN_Msk (0x1UL << ADC_CCR_VBATEN_Pos) /*!< 0x01000000 */
14871487
#define ADC_CCR_VBATEN ADC_CCR_VBATEN_Msk /*!< ADC internal path to battery voltage enable */
14881488

1489+
/* Legacy */
14891490
#define ADC_CCR_LFMEN_Pos (25U)
14901491
#define ADC_CCR_LFMEN_Msk (0x1UL << ADC_CCR_LFMEN_Pos) /*!< 0x02000000 */
1491-
#define ADC_CCR_LFMEN ADC_CCR_LFMEN_Msk /*!< ADC common clock low frequency mode */
1492+
#define ADC_CCR_LFMEN ADC_CCR_LFMEN_Msk /*!< Legacy feature, useless on STM32G0 (ADC common clock low frequency mode is automatically managed by ADC peripheral on STM32G0) */
14921493

14931494
/******************************************************************************/
14941495
/* */

system/Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
application
5858
*/
5959

60-
#if !defined (STM32G071xx) && !defined (STM32G081xx) && !defined (STM32G070xx)
60+
#if !defined (STM32G071xx) && !defined (STM32G081xx) && !defined (STM32G070xx) && !defined (STM32G030xx) && !defined (STM32G031xx) && !defined (STM32G041xx)
6161
/* #define STM32G070xx */ /*!< STM32G070xx Devices */
6262
/* #define STM32G071xx */ /*!< STM32G071xx Devices */
6363
/* #define STM32G081xx */ /*!< STM32G081xx Devices */
@@ -79,7 +79,7 @@
7979
* @brief CMSIS Device version number $VERSION$
8080
*/
8181
#define __STM32G0_CMSIS_VERSION_MAIN (0x01U) /*!< [31:24] main version */
82-
#define __STM32G0_CMSIS_VERSION_SUB1 (0x01U) /*!< [23:16] sub1 version */
82+
#define __STM32G0_CMSIS_VERSION_SUB1 (0x02U) /*!< [23:16] sub1 version */
8383
#define __STM32G0_CMSIS_VERSION_SUB2 (0x00U) /*!< [15:8] sub2 version */
8484
#define __STM32G0_CMSIS_VERSION_RC (0x00U) /*!< [7:0] release candidate */
8585
#define __STM32G0_CMSIS_VERSION ((__STM32G0_CMSIS_VERSION_MAIN << 24)\
@@ -101,6 +101,12 @@
101101
#include "stm32g081xx.h"
102102
#elif defined(STM32G070xx)
103103
#include "stm32g070xx.h"
104+
#elif defined(STM32G031xx)
105+
#include "stm32g031xx.h"
106+
#elif defined(STM32G041xx)
107+
#include "stm32g041xx.h"
108+
#elif defined(STM32G030xx)
109+
#include "stm32g030xx.h"
104110
#else
105111
#error "Please select first the target STM32G0xx device used in your application (in stm32g0xx.h file)"
106112
#endif

0 commit comments

Comments
 (0)