Skip to content

Commit c15f2bc

Browse files
committed
core(c5): add wrapped files
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 6389a0b commit c15f2bc

84 files changed

Lines changed: 343 additions & 26 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#ifndef _STARTUP_STM32YYXX_C_
2+
#define _STARTUP_STM32YYXX_C_
3+
4+
#if defined(USE_HALV2_DRIVER)
5+
#if defined(STM32C531xx)
6+
#include "startup_stm32c531xx.c"
7+
#elif defined(STM32C532xx)
8+
#include "startup_stm32c532xx.c"
9+
#elif defined(STM32C542xx)
10+
#include "startup_stm32c542xx.c"
11+
#elif defined(STM32C551xx)
12+
#include "startup_stm32c551xx.c"
13+
#elif defined(STM32C552xx)
14+
#include "startup_stm32c552xx.c"
15+
#elif defined(STM32C562xx)
16+
#include "startup_stm32c562xx.c"
17+
#elif defined(STM32C591xx)
18+
#include "startup_stm32c591xx.c"
19+
#elif defined(STM32C593xx)
20+
#include "startup_stm32c593xx.c"
21+
#elif defined(STM32C5A3xx)
22+
#include "startup_stm32c5a3xx.c"
23+
#else
24+
#if !defined(CUSTOM_STARTUP_FILE)
25+
#error "No CMSIS startup file defined, custom one should be used"
26+
#else
27+
#include CUSTOM_STARTUP_FILE
28+
#endif
29+
#endif
30+
#endif /* USE_HALV2_DRIVER */
31+
#endif /* _STARTUP_STM32YYXX_C_ */

‎cores/arduino/stm32/stm32_def_build.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef _STM32_DEF_BUILD_
22
#define _STM32_DEF_BUILD_
33

4-
#if !defined(CMSIS_STARTUP_FILE) && !defined(CUSTOM_STARTUP_FILE)
4+
#if !defined(USE_HALV2_DRIVER) && !defined(CMSIS_STARTUP_FILE) && !defined(CUSTOM_STARTUP_FILE)
55
#if defined(STM32C011xx)
66
#define CMSIS_STARTUP_FILE "startup_stm32c011xx.s"
77
#elif defined(STM32C031xx)
@@ -565,5 +565,5 @@
565565
#endif
566566
#else
567567
#warning "No CMSIS startup file defined, custom one should be used"
568-
#endif /* !CMSIS_STARTUP_FILE && !CUSTOM_STARTUP_FILE */
568+
#endif /* !USE_HALV2_DRIVER && !CMSIS_STARTUP_FILE && !CUSTOM_STARTUP_FILE */
569569
#endif /* _STM32_DEF_BUILD_ */

‎libraries/SrcWrapper/inc/LL/stm32yyxx_ll.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@
1818
#include "stm32yyxx_ll_crc.h"
1919
#include "stm32yyxx_ll_crs.h"
2020
#include "stm32yyxx_ll_dac.h"
21+
#include "stm32yyxx_ll_dbgmcu.h"
2122
#include "stm32yyxx_ll_dcache.h"
2223
#include "stm32yyxx_ll_delayblock.h"
2324
#include "stm32yyxx_ll_dlyb.h"
2425
#include "stm32yyxx_ll_dma.h"
2526
#include "stm32yyxx_ll_dma2d.h"
2627
#include "stm32yyxx_ll_dmamux.h"
2728
#include "stm32yyxx_ll_exti.h"
29+
#include "stm32yyxx_ll_flash.h"
2830
#include "stm32yyxx_ll_fmac.h"
2931
#include "stm32yyxx_ll_fmc.h"
3032
#include "stm32yyxx_ll_fmpi2c.h"
@@ -51,13 +53,16 @@
5153
#include "stm32yyxx_ll_pwr.h"
5254
#include "stm32yyxx_ll_radio.h"
5355
#include "stm32yyxx_ll_radio_timer.h"
56+
#include "stm32yyxx_ll_ramcfg.h"
5457
#include "stm32yyxx_ll_rcc.h"
5558
#include "stm32yyxx_ll_rng.h"
5659
#include "stm32yyxx_ll_rtc.h"
60+
#include "stm32yyxx_ll_sbs.h"
5761
#include "stm32yyxx_ll_sdmmc.h"
5862
#include "stm32yyxx_ll_spi.h"
5963
#include "stm32yyxx_ll_swpmi.h"
6064
#include "stm32yyxx_ll_system.h"
65+
#include "stm32yyxx_ll_tamp.h"
6166
#include "stm32yyxx_ll_tim.h"
6267
#include "stm32yyxx_ll_ucpd.h"
6368
#include "stm32yyxx_ll_usart.h"

‎libraries/SrcWrapper/inc/LL/stm32yyxx_ll_adc.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
#ifdef STM32C0xx
1212
#include "stm32c0xx_ll_adc.h"
13+
#elif STM32C5xx
14+
#include "stm32c5xx_ll_adc.h"
1315
#elif STM32F0xx
1416
#include "stm32f0xx_ll_adc.h"
1517
#elif STM32F1xx

‎libraries/SrcWrapper/inc/LL/stm32yyxx_ll_bus.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
#ifdef STM32C0xx
1212
#include "stm32c0xx_ll_bus.h"
13+
#elif STM32C5xx
14+
#include "stm32c5xx_ll_bus.h"
1315
#elif STM32F0xx
1416
#include "stm32f0xx_ll_bus.h"
1517
#elif STM32F1xx

‎libraries/SrcWrapper/inc/LL/stm32yyxx_ll_comp.h‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
#pragma GCC diagnostic ignored "-Wregister"
99
#endif
1010

11-
#ifdef STM32F0xx
11+
#ifdef STM32C5xx
12+
#include "stm32c5xx_ll_comp.h"
13+
#elif STM32F0xx
1214
#include "stm32f0xx_ll_comp.h"
1315
#elif STM32F3xx
1416
#include "stm32f3xx_ll_comp.h"

‎libraries/SrcWrapper/inc/LL/stm32yyxx_ll_cordic.h‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
#pragma GCC diagnostic ignored "-Wregister"
99
#endif
1010

11-
#ifdef STM32G4xx
11+
#ifdef STM32C5xx
12+
#include "stm32c5xx_ll_cordic.h"
13+
#elif STM32G4xx
1214
#include "stm32g4xx_ll_cordic.h"
1315
#elif STM32H5xx
1416
#include "stm32h5xx_ll_cordic.h"

‎libraries/SrcWrapper/inc/LL/stm32yyxx_ll_crc.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
#ifdef STM32C0xx
1212
#include "stm32c0xx_ll_crc.h"
13+
#elif STM32C5xx
14+
#include "stm32c5xx_ll_crc.h"
1315
#elif STM32F0xx
1416
#include "stm32f0xx_ll_crc.h"
1517
#elif STM32F1xx

‎libraries/SrcWrapper/inc/LL/stm32yyxx_ll_crs.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
#ifdef STM32C0xx
1212
#include "stm32c0xx_ll_crs.h"
13+
#elif STM32C5xx
14+
#include "stm32c5xx_ll_crs.h"
1315
#elif STM32F0xx
1416
#include "stm32f0xx_ll_crs.h"
1517
#elif STM32G0xx

‎libraries/SrcWrapper/inc/LL/stm32yyxx_ll_dac.h‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
#pragma GCC diagnostic ignored "-Wregister"
99
#endif
1010

11-
#ifdef STM32F0xx
11+
#ifdef STM32C5xx
12+
#include "stm32c5xx_ll_dac.h"
13+
#elif STM32F0xx
1214
#include "stm32f0xx_ll_dac.h"
1315
#elif STM32F1xx
1416
#include "stm32f1xx_ll_dac.h"

0 commit comments

Comments
 (0)