Skip to content

Commit

Permalink
Merge pull request #1926 from fpistm/STM32C0
Browse files Browse the repository at this point in the history
Add STM32 C0 support
  • Loading branch information
fpistm authored Jan 23, 2023
2 parents 4b5098c + 5555460 commit 32a312a
Show file tree
Hide file tree
Showing 265 changed files with 151,946 additions and 104 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,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 @@ -104,6 +105,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 @@ -149,6 +151,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 @@ -175,6 +178,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

0 comments on commit 32a312a

Please sign in to comment.