Skip to content

Commit e1c6ddf

Browse files
committed
core(C0): add wrapped files
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 8ae25ad commit e1c6ddf

File tree

70 files changed

+212
-70
lines changed

Some content is hidden

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

70 files changed

+212
-70
lines changed

cores/arduino/stm32/LL/stm32yyxx_ll_adc.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
#pragma GCC diagnostic ignored "-Wunused-parameter"
66
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
77

8-
#ifdef STM32F0xx
8+
#ifdef STM32C0xx
9+
#include "stm32c0xx_ll_adc.h"
10+
#elif STM32F0xx
911
#include "stm32f0xx_ll_adc.h"
1012
#elif STM32F1xx
1113
#include "stm32f1xx_ll_adc.h"

cores/arduino/stm32/LL/stm32yyxx_ll_bus.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
#pragma GCC diagnostic ignored "-Wunused-parameter"
66
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
77

8-
#ifdef STM32F0xx
8+
#ifdef STM32C0xx
9+
#include "stm32c0xx_ll_bus.h"
10+
#elif STM32F0xx
911
#include "stm32f0xx_ll_bus.h"
1012
#elif STM32F1xx
1113
#include "stm32f1xx_ll_bus.h"

cores/arduino/stm32/LL/stm32yyxx_ll_cortex.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
#pragma GCC diagnostic ignored "-Wunused-parameter"
66
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
77

8-
#ifdef STM32F0xx
8+
#ifdef STM32C0xx
9+
#include "stm32c0xx_ll_cortex.h"
10+
#elif STM32F0xx
911
#include "stm32f0xx_ll_cortex.h"
1012
#elif STM32F1xx
1113
#include "stm32f1xx_ll_cortex.h"

cores/arduino/stm32/LL/stm32yyxx_ll_crc.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
#pragma GCC diagnostic ignored "-Wunused-parameter"
66
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
77

8-
#ifdef STM32F0xx
8+
#ifdef STM32C0xx
9+
#include "stm32c0xx_ll_crc.h"
10+
#elif STM32F0xx
911
#include "stm32f0xx_ll_crc.h"
1012
#elif STM32F1xx
1113
#include "stm32f1xx_ll_crc.h"

cores/arduino/stm32/LL/stm32yyxx_ll_dma.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
#pragma GCC diagnostic ignored "-Wunused-parameter"
66
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
77

8-
#ifdef STM32F0xx
8+
#ifdef STM32C0xx
9+
#include "stm32c0xx_ll_dma.h"
10+
#elif STM32F0xx
911
#include "stm32f0xx_ll_dma.h"
1012
#elif STM32F1xx
1113
#include "stm32f1xx_ll_dma.h"

cores/arduino/stm32/LL/stm32yyxx_ll_dmamux.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
#pragma GCC diagnostic ignored "-Wunused-parameter"
66
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
77

8-
#ifdef STM32G0xx
8+
#ifdef STM32C0xx
9+
#include "stm32c0xx_ll_dmamux.h"
10+
#elif STM32G0xx
911
#include "stm32g0xx_ll_dmamux.h"
1012
#elif STM32G4xx
1113
#include "stm32g4xx_ll_dmamux.h"

cores/arduino/stm32/LL/stm32yyxx_ll_exti.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
#pragma GCC diagnostic ignored "-Wunused-parameter"
66
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
77

8-
#ifdef STM32F0xx
8+
#ifdef STM32C0xx
9+
#include "stm32c0xx_ll_exti.h"
10+
#elif STM32F0xx
911
#include "stm32f0xx_ll_exti.h"
1012
#elif STM32F1xx
1113
#include "stm32f1xx_ll_exti.h"

cores/arduino/stm32/LL/stm32yyxx_ll_gpio.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
#pragma GCC diagnostic ignored "-Wunused-parameter"
66
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
77

8-
#ifdef STM32F0xx
8+
#ifdef STM32C0xx
9+
#include "stm32c0xx_ll_gpio.h"
10+
#elif STM32F0xx
911
#include "stm32f0xx_ll_gpio.h"
1012
#elif STM32F1xx
1113
#include "stm32f1xx_ll_gpio.h"

cores/arduino/stm32/LL/stm32yyxx_ll_i2c.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
#pragma GCC diagnostic ignored "-Wunused-parameter"
66
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
77

8-
#ifdef STM32F0xx
8+
#ifdef STM32C0xx
9+
#include "stm32c0xx_ll_i2c.h"
10+
#elif STM32F0xx
911
#include "stm32f0xx_ll_i2c.h"
1012
#elif STM32F1xx
1113
#include "stm32f1xx_ll_i2c.h"

cores/arduino/stm32/LL/stm32yyxx_ll_iwdg.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
#pragma GCC diagnostic ignored "-Wunused-parameter"
66
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
77

8-
#ifdef STM32F0xx
8+
#ifdef STM32C0xx
9+
#include "stm32c0xx_ll_iwdg.h"
10+
#elif STM32F0xx
911
#include "stm32f0xx_ll_iwdg.h"
1012
#elif STM32F1xx
1113
#include "stm32f1xx_ll_iwdg.h"

cores/arduino/stm32/LL/stm32yyxx_ll_pwr.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
#pragma GCC diagnostic ignored "-Wunused-parameter"
66
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
77

8-
#ifdef STM32F0xx
8+
#ifdef STM32C0xx
9+
#include "stm32c0xx_ll_pwr.h"
10+
#elif STM32F0xx
911
#include "stm32f0xx_ll_pwr.h"
1012
#elif STM32F1xx
1113
#include "stm32f1xx_ll_pwr.h"

cores/arduino/stm32/LL/stm32yyxx_ll_rcc.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
#pragma GCC diagnostic ignored "-Wunused-parameter"
66
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
77

8-
#ifdef STM32F0xx
8+
#ifdef STM32C0xx
9+
#include "stm32c0xx_ll_rcc.h"
10+
#elif STM32F0xx
911
#include "stm32f0xx_ll_rcc.h"
1012
#elif STM32F1xx
1113
#include "stm32f1xx_ll_rcc.h"

cores/arduino/stm32/LL/stm32yyxx_ll_rtc.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
#pragma GCC diagnostic ignored "-Wunused-parameter"
66
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
77

8-
#ifdef STM32F0xx
8+
#ifdef STM32C0xx
9+
#include "stm32c0xx_ll_rtc.h"
10+
#elif STM32F0xx
911
#include "stm32f0xx_ll_rtc.h"
1012
#elif STM32F1xx
1113
#include "stm32f1xx_ll_rtc.h"

cores/arduino/stm32/LL/stm32yyxx_ll_spi.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
#pragma GCC diagnostic ignored "-Wunused-parameter"
66
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
77

8-
#ifdef STM32F0xx
8+
#ifdef STM32C0xx
9+
#include "stm32c0xx_ll_spi.h"
10+
#elif STM32F0xx
911
#include "stm32f0xx_ll_spi.h"
1012
#elif STM32F1xx
1113
#include "stm32f1xx_ll_spi.h"

cores/arduino/stm32/LL/stm32yyxx_ll_system.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
#pragma GCC diagnostic ignored "-Wunused-parameter"
66
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
77

8-
#ifdef STM32F0xx
8+
#ifdef STM32C0xx
9+
#include "stm32c0xx_ll_system.h"
10+
#elif STM32F0xx
911
#include "stm32f0xx_ll_system.h"
1012
#elif STM32F1xx
1113
#include "stm32f1xx_ll_system.h"

cores/arduino/stm32/LL/stm32yyxx_ll_tim.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
#pragma GCC diagnostic ignored "-Wunused-parameter"
66
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
77

8-
#ifdef STM32F0xx
8+
#ifdef STM32C0xx
9+
#include "stm32c0xx_ll_tim.h"
10+
#elif STM32F0xx
911
#include "stm32f0xx_ll_tim.h"
1012
#elif STM32F1xx
1113
#include "stm32f1xx_ll_tim.h"

cores/arduino/stm32/LL/stm32yyxx_ll_usart.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
#pragma GCC diagnostic ignored "-Wunused-parameter"
66
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
77

8-
#ifdef STM32F0xx
8+
#ifdef STM32C0xx
9+
#include "stm32c0xx_ll_usart.h"
10+
#elif STM32F0xx
911
#include "stm32f0xx_ll_usart.h"
1012
#elif STM32F1xx
1113
#include "stm32f1xx_ll_usart.h"

cores/arduino/stm32/LL/stm32yyxx_ll_utils.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
#pragma GCC diagnostic ignored "-Wunused-parameter"
66
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
77

8-
#ifdef STM32F0xx
8+
#ifdef STM32C0xx
9+
#include "stm32c0xx_ll_utils.h"
10+
#elif STM32F0xx
911
#include "stm32f0xx_ll_utils.h"
1012
#elif STM32F1xx
1113
#include "stm32f1xx_ll_utils.h"

cores/arduino/stm32/LL/stm32yyxx_ll_wwdg.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
#pragma GCC diagnostic ignored "-Wunused-parameter"
66
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
77

8-
#ifdef STM32F0xx
8+
#ifdef STM32C0xx
9+
#include "stm32c0xx_ll_wwdg.h"
10+
#elif STM32F0xx
911
#include "stm32f0xx_ll_wwdg.h"
1012
#elif STM32F1xx
1113
#include "stm32f1xx_ll_wwdg.h"

cores/arduino/stm32/stm32_def_build.h

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

44
#if !defined(CMSIS_STARTUP_FILE) && !defined(CUSTOM_STARTUP_FILE)
5-
#if defined(STM32F030x6)
5+
#if defined(STM32C011xx)
6+
#define CMSIS_STARTUP_FILE "startup_stm32c011xx.s"
7+
#elif defined(STM32C031xx)
8+
#define CMSIS_STARTUP_FILE "startup_stm32c031xx.s"
9+
#elif defined(STM32F030x6)
610
#define CMSIS_STARTUP_FILE "startup_stm32f030x6.s"
711
#elif defined(STM32F030x8)
812
#define CMSIS_STARTUP_FILE "startup_stm32f030x8.s"

libraries/SrcWrapper/src/HAL/stm32yyxx_hal.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#pragma GCC diagnostic push
33
#pragma GCC diagnostic ignored "-Wunused-parameter"
44

5-
#ifdef STM32F0xx
5+
#ifdef STM32C0xx
6+
#include "stm32c0xx_hal.c"
7+
#elif STM32F0xx
68
#include "stm32f0xx_hal.c"
79
#elif STM32F1xx
810
#include "stm32f1xx_hal.c"

libraries/SrcWrapper/src/HAL/stm32yyxx_hal_adc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#pragma GCC diagnostic push
33
#pragma GCC diagnostic ignored "-Wunused-parameter"
44

5-
#ifdef STM32F0xx
5+
#ifdef STM32C0xx
6+
#include "stm32c0xx_hal_adc.c"
7+
#elif STM32F0xx
68
#include "stm32f0xx_hal_adc.c"
79
#elif STM32F1xx
810
#include "stm32f1xx_hal_adc.c"

libraries/SrcWrapper/src/HAL/stm32yyxx_hal_adc_ex.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#pragma GCC diagnostic push
33
#pragma GCC diagnostic ignored "-Wunused-parameter"
44

5-
#ifdef STM32F0xx
5+
#ifdef STM32C0xx
6+
#include "stm32c0xx_hal_adc_ex.c"
7+
#elif STM32F0xx
68
#include "stm32f0xx_hal_adc_ex.c"
79
#elif STM32F1xx
810
#include "stm32f1xx_hal_adc_ex.c"

libraries/SrcWrapper/src/HAL/stm32yyxx_hal_cortex.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#pragma GCC diagnostic push
33
#pragma GCC diagnostic ignored "-Wunused-parameter"
44

5-
#ifdef STM32F0xx
5+
#ifdef STM32C0xx
6+
#include "stm32c0xx_hal_cortex.c"
7+
#elif STM32F0xx
68
#include "stm32f0xx_hal_cortex.c"
79
#elif STM32F1xx
810
#include "stm32f1xx_hal_cortex.c"

libraries/SrcWrapper/src/HAL/stm32yyxx_hal_crc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#pragma GCC diagnostic push
33
#pragma GCC diagnostic ignored "-Wunused-parameter"
44

5-
#ifdef STM32F0xx
5+
#ifdef STM32C0xx
6+
#include "stm32c0xx_hal_crc.c"
7+
#elif STM32F0xx
68
#include "stm32f0xx_hal_crc.c"
79
#elif STM32F1xx
810
#include "stm32f1xx_hal_crc.c"

libraries/SrcWrapper/src/HAL/stm32yyxx_hal_crc_ex.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#pragma GCC diagnostic push
33
#pragma GCC diagnostic ignored "-Wunused-parameter"
44

5-
#ifdef STM32F0xx
5+
#ifdef STM32C0xx
6+
#include "stm32c0xx_hal_crc_ex.c"
7+
#elif STM32F0xx
68
#include "stm32f0xx_hal_crc_ex.c"
79
#elif STM32F3xx
810
#include "stm32f3xx_hal_crc_ex.c"

libraries/SrcWrapper/src/HAL/stm32yyxx_hal_dma.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#pragma GCC diagnostic push
33
#pragma GCC diagnostic ignored "-Wunused-parameter"
44

5-
#ifdef STM32F0xx
5+
#ifdef STM32C0xx
6+
#include "stm32c0xx_hal_dma.c"
7+
#elif STM32F0xx
68
#include "stm32f0xx_hal_dma.c"
79
#elif STM32F1xx
810
#include "stm32f1xx_hal_dma.c"

libraries/SrcWrapper/src/HAL/stm32yyxx_hal_dma_ex.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#pragma GCC diagnostic push
33
#pragma GCC diagnostic ignored "-Wunused-parameter"
44

5-
#ifdef STM32F2xx
5+
#ifdef STM32C0xx
6+
#include "stm32c0xx_hal_dma_ex.c"
7+
#elif STM32F2xx
68
#include "stm32f2xx_hal_dma_ex.c"
79
#elif STM32F4xx
810
#include "stm32f4xx_hal_dma_ex.c"

libraries/SrcWrapper/src/HAL/stm32yyxx_hal_exti.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#pragma GCC diagnostic push
33
#pragma GCC diagnostic ignored "-Wunused-parameter"
44

5-
#ifdef STM32F0xx
5+
#ifdef STM32C0xx
6+
#include "stm32c0xx_hal_exti.c"
7+
#elif STM32F0xx
68
#include "stm32f0xx_hal_exti.c"
79
#elif STM32F1xx
810
#include "stm32f1xx_hal_exti.c"

libraries/SrcWrapper/src/HAL/stm32yyxx_hal_flash.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#pragma GCC diagnostic push
33
#pragma GCC diagnostic ignored "-Wunused-parameter"
44

5-
#ifdef STM32F0xx
5+
#ifdef STM32C0xx
6+
#include "stm32c0xx_hal_flash.c"
7+
#elif STM32F0xx
68
#include "stm32f0xx_hal_flash.c"
79
#elif STM32F1xx
810
#include "stm32f1xx_hal_flash.c"

libraries/SrcWrapper/src/HAL/stm32yyxx_hal_flash_ex.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#pragma GCC diagnostic push
33
#pragma GCC diagnostic ignored "-Wunused-parameter"
44

5-
#ifdef STM32F0xx
5+
#ifdef STM32C0xx
6+
#include "stm32c0xx_hal_flash_ex.c"
7+
#elif STM32F0xx
68
#include "stm32f0xx_hal_flash_ex.c"
79
#elif STM32F1xx
810
#include "stm32f1xx_hal_flash_ex.c"

libraries/SrcWrapper/src/HAL/stm32yyxx_hal_gpio.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#pragma GCC diagnostic push
33
#pragma GCC diagnostic ignored "-Wunused-parameter"
44

5-
#ifdef STM32F0xx
5+
#ifdef STM32C0xx
6+
#include "stm32c0xx_hal_gpio.c"
7+
#elif STM32F0xx
68
#include "stm32f0xx_hal_gpio.c"
79
#elif STM32F1xx
810
#include "stm32f1xx_hal_gpio.c"

libraries/SrcWrapper/src/HAL/stm32yyxx_hal_i2c.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#pragma GCC diagnostic push
33
#pragma GCC diagnostic ignored "-Wunused-parameter"
44

5-
#ifdef STM32F0xx
5+
#ifdef STM32C0xx
6+
#include "stm32c0xx_hal_i2c.c"
7+
#elif STM32F0xx
68
#include "stm32f0xx_hal_i2c.c"
79
#elif STM32F1xx
810
#include "stm32f1xx_hal_i2c.c"

libraries/SrcWrapper/src/HAL/stm32yyxx_hal_i2c_ex.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#pragma GCC diagnostic push
33
#pragma GCC diagnostic ignored "-Wunused-parameter"
44

5-
#ifdef STM32F0xx
5+
#ifdef STM32C0xx
6+
#include "stm32c0xx_hal_i2c_ex.c"
7+
#elif STM32F0xx
68
#include "stm32f0xx_hal_i2c_ex.c"
79
#elif STM32F3xx
810
#include "stm32f3xx_hal_i2c_ex.c"

libraries/SrcWrapper/src/HAL/stm32yyxx_hal_i2s.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#pragma GCC diagnostic push
33
#pragma GCC diagnostic ignored "-Wunused-parameter"
44

5-
#ifdef STM32F0xx
5+
#ifdef STM32C0xx
6+
#include "stm32c0xx_hal_i2s.c"
7+
#elif STM32F0xx
68
#include "stm32f0xx_hal_i2s.c"
79
#elif STM32F1xx
810
#include "stm32f1xx_hal_i2s.c"

libraries/SrcWrapper/src/HAL/stm32yyxx_hal_irda.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#pragma GCC diagnostic push
33
#pragma GCC diagnostic ignored "-Wunused-parameter"
44

5-
#ifdef STM32F0xx
5+
#ifdef STM32C0xx
6+
#include "stm32c0xx_hal_irda.c"
7+
#elif STM32F0xx
68
#include "stm32f0xx_hal_irda.c"
79
#elif STM32F1xx
810
#include "stm32f1xx_hal_irda.c"

0 commit comments

Comments
 (0)