Skip to content
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

Add STM32 C0 support #1926

Merged
merged 23 commits into from
Jan 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
608b0aa
system(C0) add STM32C0xx HAL Drivers to v1.0.1
fpistm Jan 20, 2023
aadd4ca
system(C0): add STM32C0xx CMSIS Drivers to v1.0.0
fpistm Jan 20, 2023
9307dd3
system(C0): add STM32C0xx system source files
fpistm Jan 20, 2023
8925892
system(C0): update STM32C0xx hal default config
fpistm Jan 20, 2023
8ae25ad
core(C0): add top HAL include
fpistm Jan 20, 2023
e1c6ddf
core(C0): add wrapped files
fpistm Jan 20, 2023
84c80bd
system(C0): update STM32C0xx hal default config
fpistm Jan 20, 2023
b0dceed
system(C0): update STM32C0xx system
fpistm Oct 27, 2021
6426bf4
variants(C0): add all generated STM32C0xx generic variant files
fpistm Jan 20, 2023
17ce259
variant(C0): add C031C(4-6)(T-U) generic support
fpistm Oct 27, 2021
10a4ddb
core(C0): Enable/disable Backup Domain write protection depending on …
ABOSTM Jan 10, 2022
f36364e
core(C0): Backup register LL API change
ABOSTM Jan 10, 2022
56df9ea
core(C0): TIM1_IRQn definition
ABOSTM Jan 10, 2022
dbd4888
libraries(C0): Add GPIO EXTI support
ABOSTM Jan 10, 2022
11f5faf
libraries(C0): I2C support
ABOSTM Jan 11, 2022
b7c4c13
libraries(C0): Remove PLL reference when not available
ABOSTM Jan 11, 2022
0fa37dd
cores(C0): Some peripherals have HSIKER source instead of HSI
ABOSTM Jan 11, 2022
60eba70
cores(C0): HardwareTimer, C0 doesn't support APB2
ABOSTM Jan 11, 2022
4da73af
libraries(C0): ADC support
ABOSTM Jan 11, 2022
d99cb56
libraries(C0): SPI is on PCLK1
ABOSTM Jan 11, 2022
1650f3a
libraries(C0): Timer is on PCLK1
ABOSTM Jan 11, 2022
4414beb
variant(C0): Add Nucleo C031C6 support
ABOSTM Jan 13, 2022
5555460
variant(C0): Add support of Disco board STM32C0316-DK
ABOSTM Jan 10, 2022
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
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
- [Discovery boards](#discovery-boards)
- [Eval boards](#eval-boards)
- [STM32MP1 series coprocessor boards](#stm32mp1-series-coprocessor-boards)
- [Generic STM32C0 boards](#generic-stm32c0-boards)
- [Generic STM32F0 boards](#generic-stm32f0-boards)
- [Generic STM32F1 boards](#generic-stm32f1-boards)
- [Generic STM32F2 boards](#generic-stm32f2-boards)
Expand Down Expand Up @@ -105,6 +106,7 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d

| Status | Device(s) | Name | Release | Notes |
| :----: | :-------: | ---- | :-----: | :---- |
| :yellow_heart: | STM32C031C6 | [Nucleo C031C6](https://www.st.com/en/evaluation-tools/nucleo-c031c6.html) | **2.5.0** | |
| :green_heart: | STM32F030R8 | [Nucleo F030R8](http://www.st.com/en/evaluation-tools/nucleo-f030r8.html) | *0.2.0* | |
| :green_heart: | STM32F070RB | [Nucleo F070RB](http://www.st.com/en/evaluation-tools/nucleo-f070rb.html) | *2.0.0* | |
| :green_heart: | STM32F072RB | [Nucleo F072RB](http://www.st.com/en/evaluation-tools/nucleo-f072rb.html) | *1.9.0* | |
Expand Down Expand Up @@ -150,6 +152,7 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d

| Status | Device(s) | Name | Release | Notes |
| :----: | :-------: | ---- | :-----: | :---- |
| :yellow_heart: | STM32C031C6 | [STM32C0316-DK](https://www.st.com/en/evaluation-tools/stm32c0316-dk.html) | **2.5.0** | |
| :green_heart: | STM32F030R8 | [32F0308DISCOVERY](http://www.st.com/en/evaluation-tools/32f0308discovery.html) | *1.3.0* | |
| :green_heart: | STM32F072RB | [32F072BDISCOVERY](https://www.st.com/en/evaluation-tools/32f072bdiscovery.html) | *1.5.0* | |
| :green_heart: | STM32F100RB | [STM32VLDISCOVERY](https://www.st.com/en/evaluation-tools/stm32vldiscovery.html) | 0.2.1 | |
Expand All @@ -176,6 +179,12 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
| :green_heart: | STM32MP157A | [STM32MP157A-DK1](https://www.st.com/en/evaluation-tools/stm32mp157a-dk1.html) | *1.8.0* | See [the documentation](https://github.com/stm32duino/Arduino_Core_STM32/tree/main/variants/STM32MP157_DK/README.md) to use this board|
| :green_heart: | STM32MP157C | [STM32MP157C-DK2](https://www.st.com/en/evaluation-tools/stm32mp157c-dk2.html) | *1.8.0* | See [the documentation](https://github.com/stm32duino/Arduino_Core_STM32/tree/main/variants/STM32MP157_DK/README.md) to use this board|

### Generic STM32C0 boards

| Status | Device(s) | Name | Release | Notes |
| :----: | :-------: | ---- | :-----: | :---- |
| :yellow_heart: | STM32C031C4<br>STM32C031C6 | Generic Board | **2.5.0** | |

### Generic STM32F0 boards

| Status | Device(s) | Name | Release | Notes |
Expand Down
118 changes: 118 additions & 0 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,19 @@ Nucleo_64.build.st_extra_flags=-D{build.product_line} {build.enable_usb} {build.
Nucleo_64.upload.maximum_size=0
Nucleo_64.upload.maximum_data_size=0

# NUCLEO_C031C6 board
Nucleo_64.menu.pnum.NUCLEO_C031C6=Nucleo C031C6
Nucleo_64.menu.pnum.NUCLEO_C031C6.node="NOD_C031C6"
Nucleo_64.menu.pnum.NUCLEO_C031C6.upload.maximum_size=32768
Nucleo_64.menu.pnum.NUCLEO_C031C6.upload.maximum_data_size=12288
Nucleo_64.menu.pnum.NUCLEO_C031C6.build.mcu=cortex-m0plus
Nucleo_64.menu.pnum.NUCLEO_C031C6.build.board=NUCLEO_C031C6
Nucleo_64.menu.pnum.NUCLEO_C031C6.build.series=STM32C0xx
Nucleo_64.menu.pnum.NUCLEO_C031C6.build.product_line=STM32C031xx
Nucleo_64.menu.pnum.NUCLEO_C031C6.build.variant=STM32C0xx/C031C(4-6)(T-U)
Nucleo_64.menu.pnum.NUCLEO_C031C6.build.cmsis_lib_gcc=arm_cortexM0l_math
Nucleo_64.menu.pnum.NUCLEO_C031C6.build.extra_flags=-D{build.product_line} {build.xSerial} -D__CORTEX_SC=0

# NUCLEO_F030R8 board
Nucleo_64.menu.pnum.NUCLEO_F030R8=Nucleo F030R8
Nucleo_64.menu.pnum.NUCLEO_F030R8.node="NODE_F030R8,NUCLEO"
Expand Down Expand Up @@ -870,6 +883,19 @@ Disco.menu.pnum.B_U585I_IOT02A.build.variant=STM32U5xx/U575A(G-I)IxQ_U585AIIxQ
Disco.menu.pnum.B_U585I_IOT02A.build.peripheral_pins=-DCUSTOM_PERIPHERAL_PINS
Disco.menu.pnum.B_U585I_IOT02A.build.cmsis_lib_gcc=arm_ARMv8MMLlfsp_math

# STM32C0316-DK board
Disco.menu.pnum.STM32C0316_DK=STM32C0316-DK
Disco.menu.pnum.STM32C0316_DK.node="No_mass_storage_for_this_board_Use_STLink_upload_method"
Disco.menu.pnum.STM32C0316_DK.upload.maximum_size=32768
Disco.menu.pnum.STM32C0316_DK.upload.maximum_data_size=12288
Disco.menu.pnum.STM32C0316_DK.build.mcu=cortex-m0plus
Disco.menu.pnum.STM32C0316_DK.build.board=STM32C0316_DK
Disco.menu.pnum.STM32C0316_DK.build.series=STM32C0xx
Disco.menu.pnum.STM32C0316_DK.build.product_line=STM32C031xx
Disco.menu.pnum.STM32C0316_DK.build.variant=STM32C0xx/C031C(4-6)(T-U)
Disco.menu.pnum.STM32C0316_DK.build.cmsis_lib_gcc=arm_cortexM0l_math
Disco.menu.pnum.STM32C0316_DK.build.extra_flags=-D{build.product_line} {build.xSerial} -D__CORTEX_SC=0

# DISCO_F030R8 board
Disco.menu.pnum.DISCO_F030R8=STM32F030R8-DISCVL
Disco.menu.pnum.DISCO_F030R8.node="No_mass_storage_for_this_board_Use_STLink_upload_method"
Expand Down Expand Up @@ -1090,6 +1116,60 @@ STM32MP1.menu.upload_method.MassStorage=Generate run_arduino.sh (You need to cop
STM32MP1.menu.upload_method.MassStorage.upload.protocol=
STM32MP1.menu.upload_method.MassStorage.upload.tool=remoteproc_gen

###############################
# Generic C0
GenC0.name=Generic STM32C0 series

GenC0.build.core=arduino
GenC0.build.board=GenC0
GenC0.build.mcu=cortex-m0plus
GenC0.build.series=STM32C0xx
GenC0.build.cmsis_lib_gcc=arm_cortexM0l_math
GenC0.build.extra_flags=-D{build.product_line} {build.xSerial} -D__CORTEX_SC=0

# Generic C031C4Tx
GenC0.menu.pnum.GENERIC_C031C4TX=Generic C031C4Tx
GenC0.menu.pnum.GENERIC_C031C4TX.upload.maximum_size=16384
GenC0.menu.pnum.GENERIC_C031C4TX.upload.maximum_data_size=12288
GenC0.menu.pnum.GENERIC_C031C4TX.build.board=GENERIC_C031C4TX
GenC0.menu.pnum.GENERIC_C031C4TX.build.product_line=STM32C031xx
GenC0.menu.pnum.GENERIC_C031C4TX.build.variant=STM32C0xx/C031C(4-6)(T-U)

# Generic C031C6Tx
GenC0.menu.pnum.GENERIC_C031C6TX=Generic C031C6Tx
GenC0.menu.pnum.GENERIC_C031C6TX.upload.maximum_size=32768
GenC0.menu.pnum.GENERIC_C031C6TX.upload.maximum_data_size=12288
GenC0.menu.pnum.GENERIC_C031C6TX.build.board=GENERIC_C031C6TX
GenC0.menu.pnum.GENERIC_C031C6TX.build.product_line=STM32C031xx
GenC0.menu.pnum.GENERIC_C031C6TX.build.variant=STM32C0xx/C031C(4-6)(T-U)

# Generic C031C4Ux
GenC0.menu.pnum.GENERIC_C031C4UX=Generic C031C4Ux
GenC0.menu.pnum.GENERIC_C031C4UX.upload.maximum_size=16384
GenC0.menu.pnum.GENERIC_C031C4UX.upload.maximum_data_size=12288
GenC0.menu.pnum.GENERIC_C031C4UX.build.board=GENERIC_C031C4UX
GenC0.menu.pnum.GENERIC_C031C4UX.build.product_line=STM32C031xx
GenC0.menu.pnum.GENERIC_C031C4UX.build.variant=STM32C0xx/C031C(4-6)(T-U)

# Generic C031C6Ux
GenC0.menu.pnum.GENERIC_C031C6UX=Generic C031C6Ux
GenC0.menu.pnum.GENERIC_C031C6UX.upload.maximum_size=32768
GenC0.menu.pnum.GENERIC_C031C6UX.upload.maximum_data_size=12288
GenC0.menu.pnum.GENERIC_C031C6UX.build.board=GENERIC_C031C6UX
GenC0.menu.pnum.GENERIC_C031C6UX.build.product_line=STM32C031xx
GenC0.menu.pnum.GENERIC_C031C6UX.build.variant=STM32C0xx/C031C(4-6)(T-U)

# Upload menu
GenC0.menu.upload_method.swdMethod=STM32CubeProgrammer (SWD)
GenC0.menu.upload_method.swdMethod.upload.protocol=0
GenC0.menu.upload_method.swdMethod.upload.options=-g
GenC0.menu.upload_method.swdMethod.upload.tool=stm32CubeProg

GenC0.menu.upload_method.serialMethod=STM32CubeProgrammer (Serial)
GenC0.menu.upload_method.serialMethod.upload.protocol=1
GenC0.menu.upload_method.serialMethod.upload.options={serial.port.file} -s
GenC0.menu.upload_method.serialMethod.upload.tool=stm32CubeProg

###############################
# Generic F0
GenF0.name=Generic STM32F0 series
Expand Down Expand Up @@ -10500,6 +10580,12 @@ STM32MP1.menu.xserial.none.build.xSerial=-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NO
STM32MP1.menu.xserial.disabled=Disabled (no Serial support)
STM32MP1.menu.xserial.disabled.build.xSerial=

GenC0.menu.xserial.generic=Enabled (generic 'Serial')
GenC0.menu.xserial.none=Enabled (no generic 'Serial')
GenC0.menu.xserial.none.build.xSerial=-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE
GenC0.menu.xserial.disabled=Disabled (no Serial support)
GenC0.menu.xserial.disabled.build.xSerial=

GenF0.menu.xserial.generic=Enabled (generic 'Serial')
GenF0.menu.xserial.none=Enabled (no generic 'Serial')
GenF0.menu.xserial.none.build.xSerial=-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE
Expand Down Expand Up @@ -11088,6 +11174,24 @@ STM32MP1.menu.opt.ogstd.build.flags.optimize=-Og
STM32MP1.menu.opt.o0std=No Optimization (-O0)
STM32MP1.menu.opt.o0std.build.flags.optimize=-O0

GenC0.menu.opt.osstd=Smallest (-Os default)
GenC0.menu.opt.oslto=Smallest (-Os) with LTO
GenC0.menu.opt.oslto.build.flags.optimize=-Os -flto
GenC0.menu.opt.o1std=Fast (-O1)
GenC0.menu.opt.o1std.build.flags.optimize=-O1
GenC0.menu.opt.o1lto=Fast (-O1) with LTO
GenC0.menu.opt.o1lto.build.flags.optimize=-O1 -flto
GenC0.menu.opt.o2std=Faster (-O2)
GenC0.menu.opt.o2std.build.flags.optimize=-O2
GenC0.menu.opt.o2lto=Faster (-O2) with LTO
GenC0.menu.opt.o2lto.build.flags.optimize=-O2 -flto
GenC0.menu.opt.o3std=Fastest (-O3)
GenC0.menu.opt.o3std.build.flags.optimize=-O3
GenC0.menu.opt.o3lto=Fastest (-O3) with LTO
GenC0.menu.opt.o3lto.build.flags.optimize=-O3 -flto
GenC0.menu.opt.ogstd=Debug (-Og)
GenC0.menu.opt.ogstd.build.flags.optimize=-Og

GenF0.menu.opt.osstd=Smallest (-Os default)
GenF0.menu.opt.oslto=Smallest (-Os) with LTO
GenF0.menu.opt.oslto.build.flags.optimize=-Os -flto
Expand Down Expand Up @@ -11618,6 +11722,10 @@ STM32MP1.menu.dbg.enable_log.build.flags.debug=
STM32MP1.menu.dbg.enable_all=Core Logs and Symbols Enabled (-g)
STM32MP1.menu.dbg.enable_all.build.flags.debug=-g

GenC0.menu.dbg.none=None
GenC0.menu.dbg.enable=Enabled (-g)
GenC0.menu.dbg.enable.build.flags.debug=-g

GenF0.menu.dbg.none=None
GenF0.menu.dbg.enable_sym=Symbols Enabled (-g)
GenF0.menu.dbg.enable_sym.build.flags.debug=-g -DNDEBUG
Expand Down Expand Up @@ -11863,6 +11971,16 @@ STM32MP1.menu.rtlib.nanofps.build.flags.ldspecs=--specs=nano.specs -u _printf_fl
STM32MP1.menu.rtlib.full=Newlib Standard
STM32MP1.menu.rtlib.full.build.flags.ldspecs=

GenC0.menu.rtlib.nano=Newlib Nano (default)
GenC0.menu.rtlib.nanofp=Newlib Nano + Float Printf
GenC0.menu.rtlib.nanofp.build.flags.ldspecs=--specs=nano.specs -u _printf_float
GenC0.menu.rtlib.nanofs=Newlib Nano + Float Scanf
GenC0.menu.rtlib.nanofs.build.flags.ldspecs=--specs=nano.specs -u _scanf_float
GenC0.menu.rtlib.nanofps=Newlib Nano + Float Printf/Scanf
GenC0.menu.rtlib.nanofps.build.flags.ldspecs=--specs=nano.specs -u _printf_float -u _scanf_float
GenC0.menu.rtlib.full=Newlib Standard
GenC0.menu.rtlib.full.build.flags.ldspecs=

GenF0.menu.rtlib.nano=Newlib Nano (default)
GenF0.menu.rtlib.nanofp=Newlib Nano + Float Printf
GenF0.menu.rtlib.nanofp.build.flags.ldspecs=--specs=nano.specs -u _printf_float
Expand Down
4 changes: 3 additions & 1 deletion cores/arduino/stm32/LL/stm32yyxx_ll_adc.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"

#ifdef STM32F0xx
#ifdef STM32C0xx
#include "stm32c0xx_ll_adc.h"
#elif STM32F0xx
#include "stm32f0xx_ll_adc.h"
#elif STM32F1xx
#include "stm32f1xx_ll_adc.h"
Expand Down
4 changes: 3 additions & 1 deletion cores/arduino/stm32/LL/stm32yyxx_ll_bus.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"

#ifdef STM32F0xx
#ifdef STM32C0xx
#include "stm32c0xx_ll_bus.h"
#elif STM32F0xx
#include "stm32f0xx_ll_bus.h"
#elif STM32F1xx
#include "stm32f1xx_ll_bus.h"
Expand Down
4 changes: 3 additions & 1 deletion cores/arduino/stm32/LL/stm32yyxx_ll_cortex.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"

#ifdef STM32F0xx
#ifdef STM32C0xx
#include "stm32c0xx_ll_cortex.h"
#elif STM32F0xx
#include "stm32f0xx_ll_cortex.h"
#elif STM32F1xx
#include "stm32f1xx_ll_cortex.h"
Expand Down
4 changes: 3 additions & 1 deletion cores/arduino/stm32/LL/stm32yyxx_ll_crc.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"

#ifdef STM32F0xx
#ifdef STM32C0xx
#include "stm32c0xx_ll_crc.h"
#elif STM32F0xx
#include "stm32f0xx_ll_crc.h"
#elif STM32F1xx
#include "stm32f1xx_ll_crc.h"
Expand Down
4 changes: 3 additions & 1 deletion cores/arduino/stm32/LL/stm32yyxx_ll_dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"

#ifdef STM32F0xx
#ifdef STM32C0xx
#include "stm32c0xx_ll_dma.h"
#elif STM32F0xx
#include "stm32f0xx_ll_dma.h"
#elif STM32F1xx
#include "stm32f1xx_ll_dma.h"
Expand Down
4 changes: 3 additions & 1 deletion cores/arduino/stm32/LL/stm32yyxx_ll_dmamux.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"

#ifdef STM32G0xx
#ifdef STM32C0xx
#include "stm32c0xx_ll_dmamux.h"
#elif STM32G0xx
#include "stm32g0xx_ll_dmamux.h"
#elif STM32G4xx
#include "stm32g4xx_ll_dmamux.h"
Expand Down
4 changes: 3 additions & 1 deletion cores/arduino/stm32/LL/stm32yyxx_ll_exti.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"

#ifdef STM32F0xx
#ifdef STM32C0xx
#include "stm32c0xx_ll_exti.h"
#elif STM32F0xx
#include "stm32f0xx_ll_exti.h"
#elif STM32F1xx
#include "stm32f1xx_ll_exti.h"
Expand Down
4 changes: 3 additions & 1 deletion cores/arduino/stm32/LL/stm32yyxx_ll_gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"

#ifdef STM32F0xx
#ifdef STM32C0xx
#include "stm32c0xx_ll_gpio.h"
#elif STM32F0xx
#include "stm32f0xx_ll_gpio.h"
#elif STM32F1xx
#include "stm32f1xx_ll_gpio.h"
Expand Down
4 changes: 3 additions & 1 deletion cores/arduino/stm32/LL/stm32yyxx_ll_i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"

#ifdef STM32F0xx
#ifdef STM32C0xx
#include "stm32c0xx_ll_i2c.h"
#elif STM32F0xx
#include "stm32f0xx_ll_i2c.h"
#elif STM32F1xx
#include "stm32f1xx_ll_i2c.h"
Expand Down
4 changes: 3 additions & 1 deletion cores/arduino/stm32/LL/stm32yyxx_ll_iwdg.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"

#ifdef STM32F0xx
#ifdef STM32C0xx
#include "stm32c0xx_ll_iwdg.h"
#elif STM32F0xx
#include "stm32f0xx_ll_iwdg.h"
#elif STM32F1xx
#include "stm32f1xx_ll_iwdg.h"
Expand Down
4 changes: 3 additions & 1 deletion cores/arduino/stm32/LL/stm32yyxx_ll_pwr.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"

#ifdef STM32F0xx
#ifdef STM32C0xx
#include "stm32c0xx_ll_pwr.h"
#elif STM32F0xx
#include "stm32f0xx_ll_pwr.h"
#elif STM32F1xx
#include "stm32f1xx_ll_pwr.h"
Expand Down
4 changes: 3 additions & 1 deletion cores/arduino/stm32/LL/stm32yyxx_ll_rcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"

#ifdef STM32F0xx
#ifdef STM32C0xx
#include "stm32c0xx_ll_rcc.h"
#elif STM32F0xx
#include "stm32f0xx_ll_rcc.h"
#elif STM32F1xx
#include "stm32f1xx_ll_rcc.h"
Expand Down
4 changes: 3 additions & 1 deletion cores/arduino/stm32/LL/stm32yyxx_ll_rtc.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"

#ifdef STM32F0xx
#ifdef STM32C0xx
#include "stm32c0xx_ll_rtc.h"
#elif STM32F0xx
#include "stm32f0xx_ll_rtc.h"
#elif STM32F1xx
#include "stm32f1xx_ll_rtc.h"
Expand Down
4 changes: 3 additions & 1 deletion cores/arduino/stm32/LL/stm32yyxx_ll_spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"

#ifdef STM32F0xx
#ifdef STM32C0xx
#include "stm32c0xx_ll_spi.h"
#elif STM32F0xx
#include "stm32f0xx_ll_spi.h"
#elif STM32F1xx
#include "stm32f1xx_ll_spi.h"
Expand Down
4 changes: 3 additions & 1 deletion cores/arduino/stm32/LL/stm32yyxx_ll_system.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"

#ifdef STM32F0xx
#ifdef STM32C0xx
#include "stm32c0xx_ll_system.h"
#elif STM32F0xx
#include "stm32f0xx_ll_system.h"
#elif STM32F1xx
#include "stm32f1xx_ll_system.h"
Expand Down
4 changes: 3 additions & 1 deletion cores/arduino/stm32/LL/stm32yyxx_ll_tim.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"

#ifdef STM32F0xx
#ifdef STM32C0xx
#include "stm32c0xx_ll_tim.h"
#elif STM32F0xx
#include "stm32f0xx_ll_tim.h"
#elif STM32F1xx
#include "stm32f1xx_ll_tim.h"
Expand Down
4 changes: 3 additions & 1 deletion cores/arduino/stm32/LL/stm32yyxx_ll_usart.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"

#ifdef STM32F0xx
#ifdef STM32C0xx
#include "stm32c0xx_ll_usart.h"
#elif STM32F0xx
#include "stm32f0xx_ll_usart.h"
#elif STM32F1xx
#include "stm32f1xx_ll_usart.h"
Expand Down
Loading