From 8da63615cf3e3aac9d0b5e010e13c9eacfa85d66 Mon Sep 17 00:00:00 2001 From: "Frederic.Pillon" Date: Wed, 1 Aug 2018 14:52:15 +0200 Subject: [PATCH] Update LL wrapper files management Move all LL wrapper file in LL/ directory instead of HAL Split stm32yyxx_ll.h file per feature (stm32yyxx_ll_*.h), this allow a better granularity and to include only the required LL header file instead of the full list. Anyway, it will be always possible to include all LL headers if needed using: stm32yyxx_ll.h Signed-off-by: Frederic.Pillon --- cores/arduino/stm32/HAL/stm32yyxx_hal.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_adc.c | 2 - .../arduino/stm32/HAL/stm32yyxx_hal_adc_ex.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_can.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_cec.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_comp.c | 2 - .../arduino/stm32/HAL/stm32yyxx_hal_comp_ex.c | 2 - .../arduino/stm32/HAL/stm32yyxx_hal_cortex.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_crc.c | 2 - .../arduino/stm32/HAL/stm32yyxx_hal_crc_ex.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_cryp.c | 2 - .../arduino/stm32/HAL/stm32yyxx_hal_cryp_ex.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_dac.c | 2 - .../arduino/stm32/HAL/stm32yyxx_hal_dac_ex.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_dcmi.c | 2 - .../arduino/stm32/HAL/stm32yyxx_hal_dcmi_ex.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_dfsdm.c | 2 - .../stm32/HAL/stm32yyxx_hal_dfsdm_ex.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_dma.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_dma2d.c | 2 - .../arduino/stm32/HAL/stm32yyxx_hal_dma_ex.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_dsi.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_eth.c | 2 - .../stm32/HAL/stm32yyxx_hal_firewall.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_flash.c | 2 - .../stm32/HAL/stm32yyxx_hal_flash_ex.c | 2 - .../stm32/HAL/stm32yyxx_hal_flash_ramfunc.c | 2 - .../arduino/stm32/HAL/stm32yyxx_hal_fmpi2c.c | 2 - .../stm32/HAL/stm32yyxx_hal_fmpi2c_ex.c | 2 - .../arduino/stm32/HAL/stm32yyxx_hal_gfxmmu.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_gpio.c | 2 - .../arduino/stm32/HAL/stm32yyxx_hal_gpio_ex.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_hash.c | 2 - .../arduino/stm32/HAL/stm32yyxx_hal_hash_ex.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_hcd.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_hrtim.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_i2c.c | 2 - .../arduino/stm32/HAL/stm32yyxx_hal_i2c_ex.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_i2s.c | 2 - .../arduino/stm32/HAL/stm32yyxx_hal_i2s_ex.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_irda.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_iwdg.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_jpeg.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_lcd.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_lptim.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_ltdc.c | 2 - .../arduino/stm32/HAL/stm32yyxx_hal_ltdc_ex.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_mdios.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_mmc.c | 2 - .../stm32/HAL/stm32yyxx_hal_msp_template.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_nand.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_nor.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_opamp.c | 2 - .../stm32/HAL/stm32yyxx_hal_opamp_ex.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_ospi.c | 2 - .../arduino/stm32/HAL/stm32yyxx_hal_pccard.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_pcd.c | 2 - .../arduino/stm32/HAL/stm32yyxx_hal_pcd_ex.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_pwr.c | 2 - .../arduino/stm32/HAL/stm32yyxx_hal_pwr_ex.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_qspi.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_rcc.c | 2 - .../arduino/stm32/HAL/stm32yyxx_hal_rcc_ex.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_rng.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_rtc.c | 2 - .../arduino/stm32/HAL/stm32yyxx_hal_rtc_ex.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_sai.c | 2 - .../arduino/stm32/HAL/stm32yyxx_hal_sai_ex.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_sd.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_sd_ex.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_sdadc.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_sdram.c | 2 - .../stm32/HAL/stm32yyxx_hal_smartcard.c | 2 - .../stm32/HAL/stm32yyxx_hal_smartcard_ex.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_smbus.c | 2 - .../arduino/stm32/HAL/stm32yyxx_hal_spdifrx.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_spi.c | 2 - .../arduino/stm32/HAL/stm32yyxx_hal_spi_ex.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_sram.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_swpmi.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_tim.c | 2 - .../arduino/stm32/HAL/stm32yyxx_hal_tim_ex.c | 2 - ...tm32yyxx_hal_timebase_rtc_alarm_template.c | 2 - ...m32yyxx_hal_timebase_rtc_wakeup_template.c | 2 - .../HAL/stm32yyxx_hal_timebase_tim_template.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_tsc.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_uart.c | 2 - .../arduino/stm32/HAL/stm32yyxx_hal_uart_ex.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_usart.c | 2 - .../stm32/HAL/stm32yyxx_hal_usart_ex.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_hal_wwdg.c | 2 - cores/arduino/stm32/HAL/stm32yyxx_ll.h | 236 ------------------ cores/arduino/stm32/LL/stm32yyxx_ll.h | 43 ++++ .../stm32/{HAL => LL}/stm32yyxx_ll_adc.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_adc.h | 31 +++ cores/arduino/stm32/LL/stm32yyxx_ll_bus.h | 31 +++ .../stm32/{HAL => LL}/stm32yyxx_ll_comp.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_comp.h | 19 ++ cores/arduino/stm32/LL/stm32yyxx_ll_cortex.h | 31 +++ .../stm32/{HAL => LL}/stm32yyxx_ll_crc.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_crc.h | 31 +++ .../stm32/{HAL => LL}/stm32yyxx_ll_crs.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_crs.h | 13 + .../stm32/{HAL => LL}/stm32yyxx_ll_dac.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_dac.h | 31 +++ .../stm32/{HAL => LL}/stm32yyxx_ll_dma.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_dma.h | 31 +++ .../stm32/{HAL => LL}/stm32yyxx_ll_dma2d.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_dma2d.h | 13 + cores/arduino/stm32/LL/stm32yyxx_ll_dmamux.h | 7 + .../stm32/{HAL => LL}/stm32yyxx_ll_exti.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_exti.h | 31 +++ .../stm32/{HAL => LL}/stm32yyxx_ll_fmc.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_fmc.h | 16 ++ .../stm32/{HAL => LL}/stm32yyxx_ll_fsmc.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_fsmc.h | 16 ++ .../stm32/{HAL => LL}/stm32yyxx_ll_gpio.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_gpio.h | 31 +++ .../stm32/{HAL => LL}/stm32yyxx_ll_hrtim.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_hrtim.h | 7 + .../stm32/{HAL => LL}/stm32yyxx_ll_i2c.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_i2c.h | 31 +++ cores/arduino/stm32/LL/stm32yyxx_ll_iwdg.h | 31 +++ .../stm32/{HAL => LL}/stm32yyxx_ll_lptim.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_lptim.h | 16 ++ .../stm32/{HAL => LL}/stm32yyxx_ll_lpuart.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_lpuart.h | 10 + .../stm32/{HAL => LL}/stm32yyxx_ll_opamp.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_opamp.h | 13 + .../stm32/{HAL => LL}/stm32yyxx_ll_pwr.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_pwr.h | 31 +++ .../stm32/{HAL => LL}/stm32yyxx_ll_rcc.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_rcc.h | 31 +++ .../stm32/{HAL => LL}/stm32yyxx_ll_rng.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_rng.h | 19 ++ .../stm32/{HAL => LL}/stm32yyxx_ll_rtc.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_rtc.h | 31 +++ .../stm32/{HAL => LL}/stm32yyxx_ll_sdmmc.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_sdmmc.h | 22 ++ .../stm32/{HAL => LL}/stm32yyxx_ll_spi.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_spi.h | 31 +++ .../stm32/{HAL => LL}/stm32yyxx_ll_swpmi.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_swpmi.h | 7 + cores/arduino/stm32/LL/stm32yyxx_ll_system.h | 31 +++ .../stm32/{HAL => LL}/stm32yyxx_ll_tim.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_tim.h | 31 +++ .../stm32/{HAL => LL}/stm32yyxx_ll_usart.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_usart.h | 31 +++ .../stm32/{HAL => LL}/stm32yyxx_ll_usb.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_usb.h | 19 ++ .../stm32/{HAL => LL}/stm32yyxx_ll_utils.c | 2 - cores/arduino/stm32/LL/stm32yyxx_ll_utils.h | 31 +++ cores/arduino/stm32/LL/stm32yyxx_ll_wwdg.h | 31 +++ cores/arduino/stm32/clock.c | 1 + cores/arduino/stm32/stm32_def.h | 8 - platform.txt | 2 +- 156 files changed, 831 insertions(+), 481 deletions(-) delete mode 100644 cores/arduino/stm32/HAL/stm32yyxx_ll.h create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_adc.c (94%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_adc.h create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_bus.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_comp.c (90%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_comp.h create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_cortex.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_crc.c (94%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_crc.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_crs.c (84%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_crs.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_dac.c (94%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_dac.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_dma.c (94%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_dma.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_dma2d.c (84%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_dma2d.h create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_dmamux.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_exti.c (94%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_exti.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_fmc.c (87%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_fmc.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_fsmc.c (88%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_fsmc.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_gpio.c (94%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_gpio.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_hrtim.c (65%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_hrtim.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_i2c.c (94%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_i2c.h create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_iwdg.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_lptim.c (88%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_lptim.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_lpuart.c (79%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_lpuart.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_opamp.c (84%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_opamp.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_pwr.c (94%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_pwr.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_rcc.c (94%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_rcc.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_rng.c (90%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_rng.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_rtc.c (94%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_rtc.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_sdmmc.c (91%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_sdmmc.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_spi.c (94%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_spi.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_swpmi.c (65%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_swpmi.h create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_system.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_tim.c (94%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_tim.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_usart.c (94%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_usart.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_usb.c (90%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_usb.h rename cores/arduino/stm32/{HAL => LL}/stm32yyxx_ll_utils.c (94%) create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_utils.h create mode 100644 cores/arduino/stm32/LL/stm32yyxx_ll_wwdg.h diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal.c b/cores/arduino/stm32/HAL/stm32yyxx_hal.c index de384ea765..55dcf1d237 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_adc.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_adc.c index 39555652c0..98e34feaee 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_adc.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_adc.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_adc.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_adc_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_adc_ex.c index c4a7f19fc8..82857d3425 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_adc_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_adc_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_adc_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_can.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_can.c index 9f97accdf7..95f533ae0a 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_can.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_can.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_can.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_cec.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_cec.c index c6b31cf69b..5f89cc0b66 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_cec.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_cec.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_cec.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_comp.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_comp.c index 8ed5f325b5..6e3b147e93 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_comp.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_comp.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_comp.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_comp_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_comp_ex.c index e9288166a1..dfbc055bc2 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_comp_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_comp_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32L0xx #include "stm32l0xx_hal_comp_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_cortex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_cortex.c index c65b07fe49..31d161daf5 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_cortex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_cortex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_cortex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_crc.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_crc.c index a39fa85cdd..5dbe638469 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_crc.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_crc.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_crc.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_crc_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_crc_ex.c index 4197d76980..711272e9cb 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_crc_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_crc_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_crc_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_cryp.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_cryp.c index a9d3f494f3..212e30e7aa 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_cryp.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_cryp.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F2xx #include "stm32f2xx_hal_cryp.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_cryp_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_cryp_ex.c index 1807d1b397..3d7d13ee80 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_cryp_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_cryp_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F4xx #include "stm32f4xx_hal_cryp_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_dac.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_dac.c index 22c94de3a3..d927e4c110 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_dac.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_dac.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_dac.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_dac_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_dac_ex.c index 706a6edab8..05d3537041 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_dac_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_dac_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_dac_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_dcmi.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_dcmi.c index fdc04ffad2..2b1418ed11 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_dcmi.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_dcmi.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F2xx #include "stm32f2xx_hal_dcmi.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_dcmi_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_dcmi_ex.c index 5fb7d1f194..7430cb5102 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_dcmi_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_dcmi_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F4xx #include "stm32f4xx_hal_dcmi_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_dfsdm.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_dfsdm.c index b02272eee5..1a1bb9db46 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_dfsdm.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_dfsdm.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F4xx #include "stm32f4xx_hal_dfsdm.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_dfsdm_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_dfsdm_ex.c index a4701c44a0..01da7d2f52 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_dfsdm_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_dfsdm_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32L4xx #include "stm32l4xx_hal_dfsdm_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_dma.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_dma.c index 146038be85..172e287676 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_dma.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_dma.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_dma.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_dma2d.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_dma2d.c index 531fbd1894..872317cc61 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_dma2d.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_dma2d.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F4xx #include "stm32f4xx_hal_dma2d.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_dma_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_dma_ex.c index a27f2a4ec3..3a4f1e2eab 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_dma_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_dma_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F2xx #include "stm32f2xx_hal_dma_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_dsi.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_dsi.c index bc57f14d55..9c63e2abf8 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_dsi.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_dsi.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F4xx #include "stm32f4xx_hal_dsi.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_eth.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_eth.c index 12f4e6d097..1944038333 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_eth.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_eth.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F1xx #include "stm32f1xx_hal_eth.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_firewall.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_firewall.c index bd9366da91..c01670ea23 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_firewall.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_firewall.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32L0xx #include "stm32l0xx_hal_firewall.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_flash.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_flash.c index 7a1e804404..a01c38ba68 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_flash.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_flash.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_flash.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_flash_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_flash_ex.c index 83cac34c53..75128fcfa8 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_flash_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_flash_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_flash_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_flash_ramfunc.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_flash_ramfunc.c index a39f7094da..994c45a1a3 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_flash_ramfunc.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_flash_ramfunc.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F4xx #include "stm32f4xx_hal_flash_ramfunc.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_fmpi2c.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_fmpi2c.c index 694618f09f..2af6d7351f 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_fmpi2c.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_fmpi2c.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F4xx #include "stm32f4xx_hal_fmpi2c.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_fmpi2c_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_fmpi2c_ex.c index 94b76d59ae..826a916356 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_fmpi2c_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_fmpi2c_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F4xx #include "stm32f4xx_hal_fmpi2c_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_gfxmmu.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_gfxmmu.c index 03424ac745..33359c97e9 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_gfxmmu.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_gfxmmu.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32L4xx #include "stm32l4xx_hal_gfxmmu.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_gpio.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_gpio.c index 8fa52166e1..cae6c576c3 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_gpio.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_gpio.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_gpio.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_gpio_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_gpio_ex.c index 927d53aea8..ed1024378e 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_gpio_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_gpio_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F1xx #include "stm32f1xx_hal_gpio_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_hash.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_hash.c index 5d268c1794..f3f42e128f 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_hash.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_hash.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F2xx #include "stm32f2xx_hal_hash.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_hash_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_hash_ex.c index 4e785bfe62..c33dc5e341 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_hash_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_hash_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F4xx #include "stm32f4xx_hal_hash_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_hcd.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_hcd.c index 7b191c83e1..60a24358e9 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_hcd.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_hcd.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F1xx #include "stm32f1xx_hal_hcd.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_hrtim.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_hrtim.c index 5d3925c164..e94138fce4 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_hrtim.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_hrtim.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F3xx #include "stm32f3xx_hal_hrtim.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_i2c.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_i2c.c index 7510ffc4de..735434a112 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_i2c.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_i2c.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_i2c.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_i2c_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_i2c_ex.c index 8a42fe5335..acb315d63f 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_i2c_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_i2c_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_i2c_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_i2s.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_i2s.c index 98e61a036e..cd9b2bd0c3 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_i2s.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_i2s.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_i2s.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_i2s_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_i2s_ex.c index 24bdc45a15..1b6ce9f256 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_i2s_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_i2s_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F3xx #include "stm32f3xx_hal_i2s_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_irda.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_irda.c index efcebe6310..850fae5738 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_irda.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_irda.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_irda.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_iwdg.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_iwdg.c index 6e812dbe3b..424e117653 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_iwdg.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_iwdg.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_iwdg.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_jpeg.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_jpeg.c index 52fa6ea9fb..454b37bac4 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_jpeg.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_jpeg.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F7xx #include "stm32f7xx_hal_jpeg.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_lcd.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_lcd.c index 178584b5c1..fb2c0a733c 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_lcd.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_lcd.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32L0xx #include "stm32l0xx_hal_lcd.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_lptim.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_lptim.c index 9ddf4ae775..bea933ace8 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_lptim.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_lptim.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F4xx #include "stm32f4xx_hal_lptim.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_ltdc.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_ltdc.c index c6f2541a3d..ef9235ee22 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_ltdc.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_ltdc.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F4xx #include "stm32f4xx_hal_ltdc.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_ltdc_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_ltdc_ex.c index 783890b1dc..2c560b5617 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_ltdc_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_ltdc_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F4xx #include "stm32f4xx_hal_ltdc_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_mdios.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_mdios.c index 222a4fb95c..68bc819064 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_mdios.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_mdios.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F7xx #include "stm32f7xx_hal_mdios.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_mmc.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_mmc.c index f747bc25ab..14967731b2 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_mmc.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_mmc.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F1xx #include "stm32f1xx_hal_mmc.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_msp_template.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_msp_template.c index 8ec98c00f5..0e14fa0268 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_msp_template.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_msp_template.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #if 0 #ifdef STM32F0xx #include "stm32f0xx_hal_msp_template.c" diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_nand.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_nand.c index 1cec28cbb5..b56f2ee792 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_nand.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_nand.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F1xx #include "stm32f1xx_hal_nand.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_nor.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_nor.c index 726a1bcd37..fe80983805 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_nor.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_nor.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F1xx #include "stm32f1xx_hal_nor.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_opamp.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_opamp.c index 9997267429..17f860b600 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_opamp.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_opamp.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F3xx #include "stm32f3xx_hal_opamp.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_opamp_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_opamp_ex.c index b90add7411..c36f622275 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_opamp_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_opamp_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F3xx #include "stm32f3xx_hal_opamp_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_ospi.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_ospi.c index 9a506ce2ed..110c50b268 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_ospi.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_ospi.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32L4xx #include "stm32l4xx_hal_ospi.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_pccard.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_pccard.c index 3bbe92f1d2..5e4aeb4011 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_pccard.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_pccard.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F1xx #include "stm32f1xx_hal_pccard.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_pcd.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_pcd.c index 0f4c57a2a8..10bd806eac 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_pcd.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_pcd.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_pcd.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_pcd_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_pcd_ex.c index a1f44e3892..53878a5b30 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_pcd_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_pcd_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_pcd_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_pwr.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_pwr.c index a4b14f507b..522a91c78f 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_pwr.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_pwr.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_pwr.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_pwr_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_pwr_ex.c index 539cb6c303..38bdc37036 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_pwr_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_pwr_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_pwr_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_qspi.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_qspi.c index ab41a63b7d..478b339578 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_qspi.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_qspi.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F4xx #include "stm32f4xx_hal_qspi.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_rcc.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_rcc.c index 970dd0cadd..a6ada4cae4 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_rcc.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_rcc.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_rcc.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_rcc_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_rcc_ex.c index bb196b9457..a791c181a5 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_rcc_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_rcc_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_rcc_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_rng.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_rng.c index cac0bedf13..250610cc10 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_rng.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_rng.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F2xx #include "stm32f2xx_hal_rng.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_rtc.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_rtc.c index 27dce042e2..4a2a82b2d8 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_rtc.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_rtc.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_rtc.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_rtc_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_rtc_ex.c index 6d2e672db1..9faeeac1e1 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_rtc_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_rtc_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_rtc_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_sai.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_sai.c index 0ce2fb018f..e5f08274a9 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_sai.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_sai.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F4xx #include "stm32f4xx_hal_sai.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_sai_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_sai_ex.c index 58e82205a6..407c79f329 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_sai_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_sai_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F4xx #include "stm32f4xx_hal_sai_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_sd.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_sd.c index 303b3a57d9..49f4f5fc7f 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_sd.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_sd.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F1xx #include "stm32f1xx_hal_sd.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_sd_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_sd_ex.c index 98543c5d26..fd9acb5494 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_sd_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_sd_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32L4xx #include "stm32l4xx_hal_sd_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_sdadc.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_sdadc.c index e0cd603eaf..2afb312bdf 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_sdadc.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_sdadc.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F3xx #include "stm32f3xx_hal_sdadc.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_sdram.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_sdram.c index eda5bb2031..a027bf29d0 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_sdram.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_sdram.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F4xx #include "stm32f4xx_hal_sdram.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_smartcard.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_smartcard.c index ecda05fc87..f0872cdab3 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_smartcard.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_smartcard.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_smartcard.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_smartcard_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_smartcard_ex.c index 92e41cb336..071bb1161c 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_smartcard_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_smartcard_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_smartcard_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_smbus.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_smbus.c index 5b607cb6db..8aa5c3ec8b 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_smbus.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_smbus.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_smbus.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_spdifrx.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_spdifrx.c index 9e1a4b3ef8..0c15d0deb4 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_spdifrx.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_spdifrx.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F4xx #include "stm32f4xx_hal_spdifrx.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_spi.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_spi.c index 17f91e843e..6c762aa71a 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_spi.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_spi.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_spi.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_spi_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_spi_ex.c index df775bf7df..d6fb3133b1 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_spi_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_spi_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_spi_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_sram.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_sram.c index 3e6c783de2..e8309aaa4a 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_sram.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_sram.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F1xx #include "stm32f1xx_hal_sram.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_swpmi.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_swpmi.c index 1b09f2808b..b9ddf5e350 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_swpmi.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_swpmi.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32L4xx #include "stm32l4xx_hal_swpmi.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_tim.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_tim.c index c7da2ee290..fab393a039 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_tim.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_tim.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_tim.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_tim_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_tim_ex.c index ca181e29b8..aa136ee495 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_tim_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_tim_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_tim_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_timebase_rtc_alarm_template.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_timebase_rtc_alarm_template.c index 0e6904bb2a..3cc8f4e1b6 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_timebase_rtc_alarm_template.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_timebase_rtc_alarm_template.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #if 0 #ifdef STM32F0xx #include "stm32f0xx_hal_timebase_rtc_alarm_template.c" diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_timebase_rtc_wakeup_template.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_timebase_rtc_wakeup_template.c index 90ea46cdc3..0d40d22ffe 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_timebase_rtc_wakeup_template.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_timebase_rtc_wakeup_template.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #if 0 #ifdef STM32F0xx #include "stm32f0xx_hal_timebase_rtc_wakeup_template.c" diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_timebase_tim_template.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_timebase_tim_template.c index 2712481e8d..5496a31695 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_timebase_tim_template.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_timebase_tim_template.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #if 0 #ifdef STM32F0xx #include "stm32f0xx_hal_timebase_tim_template.c" diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_tsc.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_tsc.c index 404c6cd63a..6e9b44958a 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_tsc.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_tsc.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_tsc.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_uart.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_uart.c index 99e6c44322..b15941870e 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_uart.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_uart.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_uart.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_uart_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_uart_ex.c index 5423c69593..68bdc52faa 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_uart_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_uart_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_uart_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_usart.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_usart.c index fff6748b31..853f5ab613 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_usart.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_usart.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_usart.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_usart_ex.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_usart_ex.c index ebe67b3c77..59c602ce98 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_usart_ex.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_usart_ex.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32L4xx #include "stm32l4xx_hal_usart_ex.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_hal_wwdg.c b/cores/arduino/stm32/HAL/stm32yyxx_hal_wwdg.c index 3a7822fb5a..3be2f60b8e 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_hal_wwdg.c +++ b/cores/arduino/stm32/HAL/stm32yyxx_hal_wwdg.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_hal_wwdg.c" #endif diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll.h b/cores/arduino/stm32/HAL/stm32yyxx_ll.h deleted file mode 100644 index df8d2cb020..0000000000 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll.h +++ /dev/null @@ -1,236 +0,0 @@ -#ifdef STM32F0xx -#include "stm32f0xx_ll_adc.h" -#include "stm32f0xx_ll_bus.h" -#include "stm32f0xx_ll_comp.h" -#include "stm32f0xx_ll_cortex.h" -#include "stm32f0xx_ll_crc.h" -#include "stm32f0xx_ll_crs.h" -#include "stm32f0xx_ll_dac.h" -#include "stm32f0xx_ll_dma.h" -#include "stm32f0xx_ll_exti.h" -#include "stm32f0xx_ll_gpio.h" -#include "stm32f0xx_ll_i2c.h" -#include "stm32f0xx_ll_iwdg.h" -#include "stm32f0xx_ll_pwr.h" -#include "stm32f0xx_ll_rcc.h" -#include "stm32f0xx_ll_rtc.h" -#include "stm32f0xx_ll_spi.h" -#include "stm32f0xx_ll_system.h" -#include "stm32f0xx_ll_tim.h" -#include "stm32f0xx_ll_usart.h" -#include "stm32f0xx_ll_utils.h" -#include "stm32f0xx_ll_wwdg.h" -#endif -#ifdef STM32F1xx -#include "stm32f1xx_ll_adc.h" -#include "stm32f1xx_ll_bus.h" -#include "stm32f1xx_ll_cortex.h" -#include "stm32f1xx_ll_crc.h" -#include "stm32f1xx_ll_dac.h" -#include "stm32f1xx_ll_dma.h" -#include "stm32f1xx_ll_exti.h" -#include "stm32f1xx_ll_fsmc.h" -#include "stm32f1xx_ll_gpio.h" -#include "stm32f1xx_ll_i2c.h" -#include "stm32f1xx_ll_iwdg.h" -#include "stm32f1xx_ll_pwr.h" -#include "stm32f1xx_ll_rcc.h" -#include "stm32f1xx_ll_rtc.h" -#include "stm32f1xx_ll_sdmmc.h" -#include "stm32f1xx_ll_spi.h" -#include "stm32f1xx_ll_system.h" -#include "stm32f1xx_ll_tim.h" -#include "stm32f1xx_ll_usart.h" -#include "stm32f1xx_ll_usb.h" -#include "stm32f1xx_ll_utils.h" -#include "stm32f1xx_ll_wwdg.h" -#endif -#ifdef STM32F2xx -#include "stm32f2xx_ll_adc.h" -#include "stm32f2xx_ll_bus.h" -#include "stm32f2xx_ll_cortex.h" -#include "stm32f2xx_ll_crc.h" -#include "stm32f2xx_ll_dac.h" -#include "stm32f2xx_ll_dma.h" -#include "stm32f2xx_ll_exti.h" -#include "stm32f2xx_ll_fsmc.h" -#include "stm32f2xx_ll_gpio.h" -#include "stm32f2xx_ll_i2c.h" -#include "stm32f2xx_ll_iwdg.h" -#include "stm32f2xx_ll_pwr.h" -#include "stm32f2xx_ll_rcc.h" -#include "stm32f2xx_ll_rng.h" -#include "stm32f2xx_ll_rtc.h" -#include "stm32f2xx_ll_sdmmc.h" -#include "stm32f2xx_ll_spi.h" -#include "stm32f2xx_ll_system.h" -#include "stm32f2xx_ll_tim.h" -#include "stm32f2xx_ll_usart.h" -#include "stm32f2xx_ll_usb.h" -#include "stm32f2xx_ll_utils.h" -#include "stm32f2xx_ll_wwdg.h" -#endif -#ifdef STM32F3xx -#include "stm32f3xx_ll_adc.h" -#include "stm32f3xx_ll_bus.h" -#include "stm32f3xx_ll_comp.h" -#include "stm32f3xx_ll_cortex.h" -#include "stm32f3xx_ll_crc.h" -#include "stm32f3xx_ll_dac.h" -#include "stm32f3xx_ll_dma.h" -#include "stm32f3xx_ll_exti.h" -#include "stm32f3xx_ll_fmc.h" -#include "stm32f3xx_ll_gpio.h" -#include "stm32f3xx_ll_hrtim.h" -#include "stm32f3xx_ll_i2c.h" -#include "stm32f3xx_ll_iwdg.h" -#include "stm32f3xx_ll_opamp.h" -#include "stm32f3xx_ll_pwr.h" -#include "stm32f3xx_ll_rcc.h" -#include "stm32f3xx_ll_rtc.h" -#include "stm32f3xx_ll_spi.h" -#include "stm32f3xx_ll_system.h" -#include "stm32f3xx_ll_tim.h" -#include "stm32f3xx_ll_usart.h" -#include "stm32f3xx_ll_utils.h" -#include "stm32f3xx_ll_wwdg.h" -#endif -#ifdef STM32F4xx -#include "stm32f4xx_ll_adc.h" -#include "stm32f4xx_ll_bus.h" -#include "stm32f4xx_ll_cortex.h" -#include "stm32f4xx_ll_crc.h" -#include "stm32f4xx_ll_dac.h" -#include "stm32f4xx_ll_dma.h" -#include "stm32f4xx_ll_dma2d.h" -#include "stm32f4xx_ll_exti.h" -#include "stm32f4xx_ll_fmc.h" -#include "stm32f4xx_ll_fsmc.h" -#include "stm32f4xx_ll_gpio.h" -#include "stm32f4xx_ll_i2c.h" -#include "stm32f4xx_ll_iwdg.h" -#include "stm32f4xx_ll_lptim.h" -#include "stm32f4xx_ll_pwr.h" -#include "stm32f4xx_ll_rcc.h" -#include "stm32f4xx_ll_rng.h" -#include "stm32f4xx_ll_rtc.h" -#include "stm32f4xx_ll_sdmmc.h" -#include "stm32f4xx_ll_spi.h" -#include "stm32f4xx_ll_system.h" -#include "stm32f4xx_ll_tim.h" -#include "stm32f4xx_ll_usart.h" -#include "stm32f4xx_ll_usb.h" -#include "stm32f4xx_ll_utils.h" -#include "stm32f4xx_ll_wwdg.h" -#endif -#ifdef STM32F7xx -#include "stm32f7xx_ll_adc.h" -#include "stm32f7xx_ll_bus.h" -#include "stm32f7xx_ll_cortex.h" -#include "stm32f7xx_ll_crc.h" -#include "stm32f7xx_ll_dac.h" -#include "stm32f7xx_ll_dma.h" -#include "stm32f7xx_ll_dma2d.h" -#include "stm32f7xx_ll_exti.h" -#include "stm32f7xx_ll_fmc.h" -#include "stm32f7xx_ll_gpio.h" -#include "stm32f7xx_ll_i2c.h" -#include "stm32f7xx_ll_iwdg.h" -#include "stm32f7xx_ll_lptim.h" -#include "stm32f7xx_ll_pwr.h" -#include "stm32f7xx_ll_rcc.h" -#include "stm32f7xx_ll_rng.h" -#include "stm32f7xx_ll_rtc.h" -#include "stm32f7xx_ll_sdmmc.h" -#include "stm32f7xx_ll_spi.h" -#include "stm32f7xx_ll_system.h" -#include "stm32f7xx_ll_tim.h" -#include "stm32f7xx_ll_usart.h" -#include "stm32f7xx_ll_usb.h" -#include "stm32f7xx_ll_utils.h" -#include "stm32f7xx_ll_wwdg.h" -#endif -#ifdef STM32L0xx -#include "stm32l0xx_ll_adc.h" -#include "stm32l0xx_ll_bus.h" -#include "stm32l0xx_ll_comp.h" -#include "stm32l0xx_ll_cortex.h" -#include "stm32l0xx_ll_crc.h" -#include "stm32l0xx_ll_crs.h" -#include "stm32l0xx_ll_dac.h" -#include "stm32l0xx_ll_dma.h" -#include "stm32l0xx_ll_exti.h" -#include "stm32l0xx_ll_gpio.h" -#include "stm32l0xx_ll_i2c.h" -#include "stm32l0xx_ll_iwdg.h" -#include "stm32l0xx_ll_lptim.h" -#include "stm32l0xx_ll_lpuart.h" -#include "stm32l0xx_ll_pwr.h" -#include "stm32l0xx_ll_rcc.h" -#include "stm32l0xx_ll_rng.h" -#include "stm32l0xx_ll_rtc.h" -#include "stm32l0xx_ll_spi.h" -#include "stm32l0xx_ll_system.h" -#include "stm32l0xx_ll_tim.h" -#include "stm32l0xx_ll_usart.h" -#include "stm32l0xx_ll_utils.h" -#include "stm32l0xx_ll_wwdg.h" -#endif -#ifdef STM32L1xx -#include "stm32l1xx_ll_adc.h" -#include "stm32l1xx_ll_bus.h" -#include "stm32l1xx_ll_comp.h" -#include "stm32l1xx_ll_cortex.h" -#include "stm32l1xx_ll_crc.h" -#include "stm32l1xx_ll_dac.h" -#include "stm32l1xx_ll_dma.h" -#include "stm32l1xx_ll_exti.h" -#include "stm32l1xx_ll_fsmc.h" -#include "stm32l1xx_ll_gpio.h" -#include "stm32l1xx_ll_i2c.h" -#include "stm32l1xx_ll_iwdg.h" -#include "stm32l1xx_ll_opamp.h" -#include "stm32l1xx_ll_pwr.h" -#include "stm32l1xx_ll_rcc.h" -#include "stm32l1xx_ll_rtc.h" -#include "stm32l1xx_ll_sdmmc.h" -#include "stm32l1xx_ll_spi.h" -#include "stm32l1xx_ll_system.h" -#include "stm32l1xx_ll_tim.h" -#include "stm32l1xx_ll_usart.h" -#include "stm32l1xx_ll_utils.h" -#include "stm32l1xx_ll_wwdg.h" -#endif -#ifdef STM32L4xx -#include "stm32l4xx_ll_adc.h" -#include "stm32l4xx_ll_bus.h" -#include "stm32l4xx_ll_comp.h" -#include "stm32l4xx_ll_cortex.h" -#include "stm32l4xx_ll_crc.h" -#include "stm32l4xx_ll_crs.h" -#include "stm32l4xx_ll_dac.h" -#include "stm32l4xx_ll_dma.h" -#include "stm32l4xx_ll_dma2d.h" -#include "stm32l4xx_ll_dmamux.h" -#include "stm32l4xx_ll_exti.h" -#include "stm32l4xx_ll_fmc.h" -#include "stm32l4xx_ll_gpio.h" -#include "stm32l4xx_ll_i2c.h" -#include "stm32l4xx_ll_iwdg.h" -#include "stm32l4xx_ll_lptim.h" -#include "stm32l4xx_ll_lpuart.h" -#include "stm32l4xx_ll_opamp.h" -#include "stm32l4xx_ll_pwr.h" -#include "stm32l4xx_ll_rcc.h" -#include "stm32l4xx_ll_rng.h" -#include "stm32l4xx_ll_rtc.h" -#include "stm32l4xx_ll_sdmmc.h" -#include "stm32l4xx_ll_spi.h" -#include "stm32l4xx_ll_swpmi.h" -#include "stm32l4xx_ll_system.h" -#include "stm32l4xx_ll_tim.h" -#include "stm32l4xx_ll_usart.h" -#include "stm32l4xx_ll_usb.h" -#include "stm32l4xx_ll_utils.h" -#include "stm32l4xx_ll_wwdg.h" -#endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll.h b/cores/arduino/stm32/LL/stm32yyxx_ll.h new file mode 100644 index 0000000000..4fae97eb04 --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll.h @@ -0,0 +1,43 @@ +#ifndef _STM32YYXX_LL_H_ +#define _STM32YYXX_LL_H_ + +/* Include Low Layers drivers */ +/* LL raised several warnings, ignore them */ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wstrict-aliasing" +#include "stm32yyxx_ll_adc.h" +#include "stm32yyxx_ll_bus.h" +#include "stm32yyxx_ll_comp.h" +#include "stm32yyxx_ll_cortex.h" +#include "stm32yyxx_ll_crc.h" +#include "stm32yyxx_ll_crs.h" +#include "stm32yyxx_ll_dac.h" +#include "stm32yyxx_ll_dma.h" +#include "stm32yyxx_ll_dma2d.h" +#include "stm32yyxx_ll_dmamux.h" +#include "stm32yyxx_ll_exti.h" +#include "stm32yyxx_ll_fmc.h" +#include "stm32yyxx_ll_fsmc.h" +#include "stm32yyxx_ll_gpio.h" +#include "stm32yyxx_ll_hrtim.h" +#include "stm32yyxx_ll_i2c.h" +#include "stm32yyxx_ll_iwdg.h" +#include "stm32yyxx_ll_lptim.h" +#include "stm32yyxx_ll_lpuart.h" +#include "stm32yyxx_ll_opamp.h" +#include "stm32yyxx_ll_pwr.h" +#include "stm32yyxx_ll_rcc.h" +#include "stm32yyxx_ll_rng.h" +#include "stm32yyxx_ll_rtc.h" +#include "stm32yyxx_ll_sdmmc.h" +#include "stm32yyxx_ll_spi.h" +#include "stm32yyxx_ll_swpmi.h" +#include "stm32yyxx_ll_system.h" +#include "stm32yyxx_ll_tim.h" +#include "stm32yyxx_ll_usart.h" +#include "stm32yyxx_ll_usb.h" +#include "stm32yyxx_ll_utils.h" +#include "stm32yyxx_ll_wwdg.h" +#pragma GCC diagnostic pop +#endif /* _STM32YYXX_LL_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_adc.c b/cores/arduino/stm32/LL/stm32yyxx_ll_adc.c similarity index 94% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_adc.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_adc.c index 896c502621..993cce0f54 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_adc.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_adc.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_ll_adc.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_adc.h b/cores/arduino/stm32/LL/stm32yyxx_ll_adc.h new file mode 100644 index 0000000000..711513d111 --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_adc.h @@ -0,0 +1,31 @@ +#ifndef _STM32YYXX_LL_ADC_H_ +#define _STM32YYXX_LL_ADC_H_ + +#ifdef STM32F0xx +#include "stm32f0xx_ll_adc.h" +#endif +#ifdef STM32F1xx +#include "stm32f1xx_ll_adc.h" +#endif +#ifdef STM32F2xx +#include "stm32f2xx_ll_adc.h" +#endif +#ifdef STM32F3xx +#include "stm32f3xx_ll_adc.h" +#endif +#ifdef STM32F4xx +#include "stm32f4xx_ll_adc.h" +#endif +#ifdef STM32F7xx +#include "stm32f7xx_ll_adc.h" +#endif +#ifdef STM32L0xx +#include "stm32l0xx_ll_adc.h" +#endif +#ifdef STM32L1xx +#include "stm32l1xx_ll_adc.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_adc.h" +#endif +#endif /* _STM32YYXX_LL_ADC_H_ */ diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_bus.h b/cores/arduino/stm32/LL/stm32yyxx_ll_bus.h new file mode 100644 index 0000000000..3255c41904 --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_bus.h @@ -0,0 +1,31 @@ +#ifndef _STM32YYXX_LL_BUS_H_ +#define _STM32YYXX_LL_BUS_H_ + +#ifdef STM32F0xx +#include "stm32f0xx_ll_bus.h" +#endif +#ifdef STM32F1xx +#include "stm32f1xx_ll_bus.h" +#endif +#ifdef STM32F2xx +#include "stm32f2xx_ll_bus.h" +#endif +#ifdef STM32F3xx +#include "stm32f3xx_ll_bus.h" +#endif +#ifdef STM32F4xx +#include "stm32f4xx_ll_bus.h" +#endif +#ifdef STM32F7xx +#include "stm32f7xx_ll_bus.h" +#endif +#ifdef STM32L0xx +#include "stm32l0xx_ll_bus.h" +#endif +#ifdef STM32L1xx +#include "stm32l1xx_ll_bus.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_bus.h" +#endif +#endif /* _STM32YYXX_LL_BUS_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_comp.c b/cores/arduino/stm32/LL/stm32yyxx_ll_comp.c similarity index 90% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_comp.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_comp.c index 3f56931034..a5e334406a 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_comp.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_comp.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_ll_comp.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_comp.h b/cores/arduino/stm32/LL/stm32yyxx_ll_comp.h new file mode 100644 index 0000000000..b683133af7 --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_comp.h @@ -0,0 +1,19 @@ +#ifndef _STM32YYXX_LL_COMP_H_ +#define _STM32YYXX_LL_COMP_H_ + +#ifdef STM32F0xx +#include "stm32f0xx_ll_comp.h" +#endif +#ifdef STM32F3xx +#include "stm32f3xx_ll_comp.h" +#endif +#ifdef STM32L0xx +#include "stm32l0xx_ll_comp.h" +#endif +#ifdef STM32L1xx +#include "stm32l1xx_ll_comp.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_comp.h" +#endif +#endif /* _STM32YYXX_LL_COMP_H_ */ diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_cortex.h b/cores/arduino/stm32/LL/stm32yyxx_ll_cortex.h new file mode 100644 index 0000000000..3cac4cf2bc --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_cortex.h @@ -0,0 +1,31 @@ +#ifndef _STM32YYXX_LL_CORTEX_H_ +#define _STM32YYXX_LL_CORTEX_H_ + +#ifdef STM32F0xx +#include "stm32f0xx_ll_cortex.h" +#endif +#ifdef STM32F1xx +#include "stm32f1xx_ll_cortex.h" +#endif +#ifdef STM32F2xx +#include "stm32f2xx_ll_cortex.h" +#endif +#ifdef STM32F3xx +#include "stm32f3xx_ll_cortex.h" +#endif +#ifdef STM32F4xx +#include "stm32f4xx_ll_cortex.h" +#endif +#ifdef STM32F7xx +#include "stm32f7xx_ll_cortex.h" +#endif +#ifdef STM32L0xx +#include "stm32l0xx_ll_cortex.h" +#endif +#ifdef STM32L1xx +#include "stm32l1xx_ll_cortex.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_cortex.h" +#endif +#endif /* _STM32YYXX_LL_CORTEX_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_crc.c b/cores/arduino/stm32/LL/stm32yyxx_ll_crc.c similarity index 94% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_crc.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_crc.c index ca19d57aba..1148fb304b 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_crc.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_crc.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_ll_crc.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_crc.h b/cores/arduino/stm32/LL/stm32yyxx_ll_crc.h new file mode 100644 index 0000000000..f23c38a1f4 --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_crc.h @@ -0,0 +1,31 @@ +#ifndef _STM32YYXX_LL_CRC_H_ +#define _STM32YYXX_LL_CRC_H_ + +#ifdef STM32F0xx +#include "stm32f0xx_ll_crc.h" +#endif +#ifdef STM32F1xx +#include "stm32f1xx_ll_crc.h" +#endif +#ifdef STM32F2xx +#include "stm32f2xx_ll_crc.h" +#endif +#ifdef STM32F3xx +#include "stm32f3xx_ll_crc.h" +#endif +#ifdef STM32F4xx +#include "stm32f4xx_ll_crc.h" +#endif +#ifdef STM32F7xx +#include "stm32f7xx_ll_crc.h" +#endif +#ifdef STM32L0xx +#include "stm32l0xx_ll_crc.h" +#endif +#ifdef STM32L1xx +#include "stm32l1xx_ll_crc.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_crc.h" +#endif +#endif /* _STM32YYXX_LL_CRC_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_crs.c b/cores/arduino/stm32/LL/stm32yyxx_ll_crs.c similarity index 84% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_crs.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_crs.c index 0ece94d19a..58a8ac4425 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_crs.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_crs.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_ll_crs.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_crs.h b/cores/arduino/stm32/LL/stm32yyxx_ll_crs.h new file mode 100644 index 0000000000..863425671c --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_crs.h @@ -0,0 +1,13 @@ +#ifndef _STM32YYXX_LL_CRS_H_ +#define _STM32YYXX_LL_CRS_H_ + +#ifdef STM32F0xx +#include "stm32f0xx_ll_crs.h" +#endif +#ifdef STM32L0xx +#include "stm32l0xx_ll_crs.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_crs.h" +#endif +#endif /* _STM32YYXX_LL_CRS_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_dac.c b/cores/arduino/stm32/LL/stm32yyxx_ll_dac.c similarity index 94% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_dac.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_dac.c index 46a83cb45b..81216129c7 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_dac.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_dac.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_ll_dac.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_dac.h b/cores/arduino/stm32/LL/stm32yyxx_ll_dac.h new file mode 100644 index 0000000000..66d28a9954 --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_dac.h @@ -0,0 +1,31 @@ +#ifndef _STM32YYXX_LL_DAC_H_ +#define _STM32YYXX_LL_DAC_H_ + +#ifdef STM32F0xx +#include "stm32f0xx_ll_dac.h" +#endif +#ifdef STM32F1xx +#include "stm32f1xx_ll_dac.h" +#endif +#ifdef STM32F2xx +#include "stm32f2xx_ll_dac.h" +#endif +#ifdef STM32F3xx +#include "stm32f3xx_ll_dac.h" +#endif +#ifdef STM32F4xx +#include "stm32f4xx_ll_dac.h" +#endif +#ifdef STM32F7xx +#include "stm32f7xx_ll_dac.h" +#endif +#ifdef STM32L0xx +#include "stm32l0xx_ll_dac.h" +#endif +#ifdef STM32L1xx +#include "stm32l1xx_ll_dac.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_dac.h" +#endif +#endif /* _STM32YYXX_LL_DAC_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_dma.c b/cores/arduino/stm32/LL/stm32yyxx_ll_dma.c similarity index 94% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_dma.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_dma.c index 5f55e2aa93..c3edad5515 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_dma.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_dma.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_ll_dma.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_dma.h b/cores/arduino/stm32/LL/stm32yyxx_ll_dma.h new file mode 100644 index 0000000000..271d801b62 --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_dma.h @@ -0,0 +1,31 @@ +#ifndef _STM32YYXX_LL_DMA_H_ +#define _STM32YYXX_LL_DMA_H_ + +#ifdef STM32F0xx +#include "stm32f0xx_ll_dma.h" +#endif +#ifdef STM32F1xx +#include "stm32f1xx_ll_dma.h" +#endif +#ifdef STM32F2xx +#include "stm32f2xx_ll_dma.h" +#endif +#ifdef STM32F3xx +#include "stm32f3xx_ll_dma.h" +#endif +#ifdef STM32F4xx +#include "stm32f4xx_ll_dma.h" +#endif +#ifdef STM32F7xx +#include "stm32f7xx_ll_dma.h" +#endif +#ifdef STM32L0xx +#include "stm32l0xx_ll_dma.h" +#endif +#ifdef STM32L1xx +#include "stm32l1xx_ll_dma.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_dma.h" +#endif +#endif /* _STM32YYXX_LL_DMA_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_dma2d.c b/cores/arduino/stm32/LL/stm32yyxx_ll_dma2d.c similarity index 84% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_dma2d.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_dma2d.c index 0d0f782dd2..2d4a7168d6 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_dma2d.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_dma2d.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F4xx #include "stm32f4xx_ll_dma2d.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_dma2d.h b/cores/arduino/stm32/LL/stm32yyxx_ll_dma2d.h new file mode 100644 index 0000000000..1ac95522dd --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_dma2d.h @@ -0,0 +1,13 @@ +#ifndef _STM32YYXX_LL_DMA2D_H_ +#define _STM32YYXX_LL_DMA2D_H_ + +#ifdef STM32F4xx +#include "stm32f4xx_ll_dma2d.h" +#endif +#ifdef STM32F7xx +#include "stm32f7xx_ll_dma2d.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_dma2d.h" +#endif +#endif /* _STM32YYXX_LL_DMA2D_H_ */ diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_dmamux.h b/cores/arduino/stm32/LL/stm32yyxx_ll_dmamux.h new file mode 100644 index 0000000000..816a5be33b --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_dmamux.h @@ -0,0 +1,7 @@ +#ifndef _STM32YYXX_LL_DMAMUX_H_ +#define _STM32YYXX_LL_DMAMUX_H_ + +#ifdef STM32L4xx +#include "stm32l4xx_ll_dmamux.h" +#endif +#endif /* _STM32YYXX_LL_DMAMUX_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_exti.c b/cores/arduino/stm32/LL/stm32yyxx_ll_exti.c similarity index 94% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_exti.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_exti.c index e2253ed749..3e644083af 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_exti.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_exti.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_ll_exti.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_exti.h b/cores/arduino/stm32/LL/stm32yyxx_ll_exti.h new file mode 100644 index 0000000000..e3e734a34f --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_exti.h @@ -0,0 +1,31 @@ +#ifndef _STM32YYXX_LL_EXTI_H_ +#define _STM32YYXX_LL_EXTI_H_ + +#ifdef STM32F0xx +#include "stm32f0xx_ll_exti.h" +#endif +#ifdef STM32F1xx +#include "stm32f1xx_ll_exti.h" +#endif +#ifdef STM32F2xx +#include "stm32f2xx_ll_exti.h" +#endif +#ifdef STM32F3xx +#include "stm32f3xx_ll_exti.h" +#endif +#ifdef STM32F4xx +#include "stm32f4xx_ll_exti.h" +#endif +#ifdef STM32F7xx +#include "stm32f7xx_ll_exti.h" +#endif +#ifdef STM32L0xx +#include "stm32l0xx_ll_exti.h" +#endif +#ifdef STM32L1xx +#include "stm32l1xx_ll_exti.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_exti.h" +#endif +#endif /* _STM32YYXX_LL_EXTI_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_fmc.c b/cores/arduino/stm32/LL/stm32yyxx_ll_fmc.c similarity index 87% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_fmc.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_fmc.c index f0f71aeb4f..12b4ab89e9 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_fmc.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_fmc.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F3xx #include "stm32f3xx_ll_fmc.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_fmc.h b/cores/arduino/stm32/LL/stm32yyxx_ll_fmc.h new file mode 100644 index 0000000000..01c1dec114 --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_fmc.h @@ -0,0 +1,16 @@ +#ifndef _STM32YYXX_LL_FMC_H_ +#define _STM32YYXX_LL_FMC_H_ + +#ifdef STM32F3xx +#include "stm32f3xx_ll_fmc.h" +#endif +#ifdef STM32F4xx +#include "stm32f4xx_ll_fmc.h" +#endif +#ifdef STM32F7xx +#include "stm32f7xx_ll_fmc.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_fmc.h" +#endif +#endif /* _STM32YYXX_LL_FMC_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_fsmc.c b/cores/arduino/stm32/LL/stm32yyxx_ll_fsmc.c similarity index 88% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_fsmc.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_fsmc.c index 14dedb5c09..0394a1ce98 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_fsmc.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_fsmc.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F1xx #include "stm32f1xx_ll_fsmc.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_fsmc.h b/cores/arduino/stm32/LL/stm32yyxx_ll_fsmc.h new file mode 100644 index 0000000000..84622208e4 --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_fsmc.h @@ -0,0 +1,16 @@ +#ifndef _STM32YYXX_LL_FSMC_H_ +#define _STM32YYXX_LL_FSMC_H_ + +#ifdef STM32F1xx +#include "stm32f1xx_ll_fsmc.h" +#endif +#ifdef STM32F2xx +#include "stm32f2xx_ll_fsmc.h" +#endif +#ifdef STM32F4xx +#include "stm32f4xx_ll_fsmc.h" +#endif +#ifdef STM32L1xx +#include "stm32l1xx_ll_fsmc.h" +#endif +#endif /* _STM32YYXX_LL_FSMC_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_gpio.c b/cores/arduino/stm32/LL/stm32yyxx_ll_gpio.c similarity index 94% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_gpio.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_gpio.c index c52fb6c016..5dc340d8a5 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_gpio.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_gpio.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_ll_gpio.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_gpio.h b/cores/arduino/stm32/LL/stm32yyxx_ll_gpio.h new file mode 100644 index 0000000000..4dc4410ef6 --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_gpio.h @@ -0,0 +1,31 @@ +#ifndef _STM32YYXX_LL_GPIO_H_ +#define _STM32YYXX_LL_GPIO_H_ + +#ifdef STM32F0xx +#include "stm32f0xx_ll_gpio.h" +#endif +#ifdef STM32F1xx +#include "stm32f1xx_ll_gpio.h" +#endif +#ifdef STM32F2xx +#include "stm32f2xx_ll_gpio.h" +#endif +#ifdef STM32F3xx +#include "stm32f3xx_ll_gpio.h" +#endif +#ifdef STM32F4xx +#include "stm32f4xx_ll_gpio.h" +#endif +#ifdef STM32F7xx +#include "stm32f7xx_ll_gpio.h" +#endif +#ifdef STM32L0xx +#include "stm32l0xx_ll_gpio.h" +#endif +#ifdef STM32L1xx +#include "stm32l1xx_ll_gpio.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_gpio.h" +#endif +#endif /* _STM32YYXX_LL_GPIO_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_hrtim.c b/cores/arduino/stm32/LL/stm32yyxx_ll_hrtim.c similarity index 65% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_hrtim.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_hrtim.c index 73550c57c3..b34dbd5d47 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_hrtim.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_hrtim.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F3xx #include "stm32f3xx_ll_hrtim.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_hrtim.h b/cores/arduino/stm32/LL/stm32yyxx_ll_hrtim.h new file mode 100644 index 0000000000..d5fa3f6c12 --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_hrtim.h @@ -0,0 +1,7 @@ +#ifndef _STM32YYXX_LL_HRTIM_H_ +#define _STM32YYXX_LL_HRTIM_H_ + +#ifdef STM32F3xx +#include "stm32f3xx_ll_hrtim.h" +#endif +#endif /* _STM32YYXX_LL_HRTIM_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_i2c.c b/cores/arduino/stm32/LL/stm32yyxx_ll_i2c.c similarity index 94% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_i2c.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_i2c.c index a3e3eabc20..0fb4c09eae 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_i2c.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_i2c.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_ll_i2c.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_i2c.h b/cores/arduino/stm32/LL/stm32yyxx_ll_i2c.h new file mode 100644 index 0000000000..da0989bd9a --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_i2c.h @@ -0,0 +1,31 @@ +#ifndef _STM32YYXX_LL_I2C_H_ +#define _STM32YYXX_LL_I2C_H_ + +#ifdef STM32F0xx +#include "stm32f0xx_ll_i2c.h" +#endif +#ifdef STM32F1xx +#include "stm32f1xx_ll_i2c.h" +#endif +#ifdef STM32F2xx +#include "stm32f2xx_ll_i2c.h" +#endif +#ifdef STM32F3xx +#include "stm32f3xx_ll_i2c.h" +#endif +#ifdef STM32F4xx +#include "stm32f4xx_ll_i2c.h" +#endif +#ifdef STM32F7xx +#include "stm32f7xx_ll_i2c.h" +#endif +#ifdef STM32L0xx +#include "stm32l0xx_ll_i2c.h" +#endif +#ifdef STM32L1xx +#include "stm32l1xx_ll_i2c.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_i2c.h" +#endif +#endif /* _STM32YYXX_LL_I2C_H_ */ diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_iwdg.h b/cores/arduino/stm32/LL/stm32yyxx_ll_iwdg.h new file mode 100644 index 0000000000..c60a1a10cb --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_iwdg.h @@ -0,0 +1,31 @@ +#ifndef _STM32YYXX_LL_IWDG_H_ +#define _STM32YYXX_LL_IWDG_H_ + +#ifdef STM32F0xx +#include "stm32f0xx_ll_iwdg.h" +#endif +#ifdef STM32F1xx +#include "stm32f1xx_ll_iwdg.h" +#endif +#ifdef STM32F2xx +#include "stm32f2xx_ll_iwdg.h" +#endif +#ifdef STM32F3xx +#include "stm32f3xx_ll_iwdg.h" +#endif +#ifdef STM32F4xx +#include "stm32f4xx_ll_iwdg.h" +#endif +#ifdef STM32F7xx +#include "stm32f7xx_ll_iwdg.h" +#endif +#ifdef STM32L0xx +#include "stm32l0xx_ll_iwdg.h" +#endif +#ifdef STM32L1xx +#include "stm32l1xx_ll_iwdg.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_iwdg.h" +#endif +#endif /* _STM32YYXX_LL_IWDG_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_lptim.c b/cores/arduino/stm32/LL/stm32yyxx_ll_lptim.c similarity index 88% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_lptim.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_lptim.c index 45bbdccd01..6c811650e1 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_lptim.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_lptim.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F4xx #include "stm32f4xx_ll_lptim.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_lptim.h b/cores/arduino/stm32/LL/stm32yyxx_ll_lptim.h new file mode 100644 index 0000000000..e7fb968e92 --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_lptim.h @@ -0,0 +1,16 @@ +#ifndef _STM32YYXX_LL_LPTIM_H_ +#define _STM32YYXX_LL_LPTIM_H_ + +#ifdef STM32F4xx +#include "stm32f4xx_ll_lptim.h" +#endif +#ifdef STM32F7xx +#include "stm32f7xx_ll_lptim.h" +#endif +#ifdef STM32L0xx +#include "stm32l0xx_ll_lptim.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_lptim.h" +#endif +#endif /* _STM32YYXX_LL_LPTIM_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_lpuart.c b/cores/arduino/stm32/LL/stm32yyxx_ll_lpuart.c similarity index 79% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_lpuart.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_lpuart.c index f8892679ef..df39518d38 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_lpuart.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_lpuart.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32L0xx #include "stm32l0xx_ll_lpuart.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_lpuart.h b/cores/arduino/stm32/LL/stm32yyxx_ll_lpuart.h new file mode 100644 index 0000000000..76816b9bc3 --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_lpuart.h @@ -0,0 +1,10 @@ +#ifndef _STM32YYXX_LL_LPUART_H_ +#define _STM32YYXX_LL_LPUART_H_ + +#ifdef STM32L0xx +#include "stm32l0xx_ll_lpuart.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_lpuart.h" +#endif +#endif /* _STM32YYXX_LL_LPUART_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_opamp.c b/cores/arduino/stm32/LL/stm32yyxx_ll_opamp.c similarity index 84% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_opamp.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_opamp.c index 61a8b3b3d6..1da61e28e1 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_opamp.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_opamp.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F3xx #include "stm32f3xx_ll_opamp.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_opamp.h b/cores/arduino/stm32/LL/stm32yyxx_ll_opamp.h new file mode 100644 index 0000000000..0913178dd2 --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_opamp.h @@ -0,0 +1,13 @@ +#ifndef _STM32YYXX_LL_OPAMP_H_ +#define _STM32YYXX_LL_OPAMP_H_ + +#ifdef STM32F3xx +#include "stm32f3xx_ll_opamp.h" +#endif +#ifdef STM32L1xx +#include "stm32l1xx_ll_opamp.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_opamp.h" +#endif +#endif /* _STM32YYXX_LL_OPAMP_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_pwr.c b/cores/arduino/stm32/LL/stm32yyxx_ll_pwr.c similarity index 94% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_pwr.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_pwr.c index 0dedc21584..66b84d17c3 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_pwr.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_pwr.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_ll_pwr.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_pwr.h b/cores/arduino/stm32/LL/stm32yyxx_ll_pwr.h new file mode 100644 index 0000000000..b947f342a6 --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_pwr.h @@ -0,0 +1,31 @@ +#ifndef _STM32YYXX_LL_PWR_H_ +#define _STM32YYXX_LL_PWR_H_ + +#ifdef STM32F0xx +#include "stm32f0xx_ll_pwr.h" +#endif +#ifdef STM32F1xx +#include "stm32f1xx_ll_pwr.h" +#endif +#ifdef STM32F2xx +#include "stm32f2xx_ll_pwr.h" +#endif +#ifdef STM32F3xx +#include "stm32f3xx_ll_pwr.h" +#endif +#ifdef STM32F4xx +#include "stm32f4xx_ll_pwr.h" +#endif +#ifdef STM32F7xx +#include "stm32f7xx_ll_pwr.h" +#endif +#ifdef STM32L0xx +#include "stm32l0xx_ll_pwr.h" +#endif +#ifdef STM32L1xx +#include "stm32l1xx_ll_pwr.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_pwr.h" +#endif +#endif /* _STM32YYXX_LL_PWR_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_rcc.c b/cores/arduino/stm32/LL/stm32yyxx_ll_rcc.c similarity index 94% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_rcc.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_rcc.c index 91f022444d..d070dc71ff 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_rcc.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_rcc.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_ll_rcc.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_rcc.h b/cores/arduino/stm32/LL/stm32yyxx_ll_rcc.h new file mode 100644 index 0000000000..d6a5de67e3 --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_rcc.h @@ -0,0 +1,31 @@ +#ifndef _STM32YYXX_LL_RCC_H_ +#define _STM32YYXX_LL_RCC_H_ + +#ifdef STM32F0xx +#include "stm32f0xx_ll_rcc.h" +#endif +#ifdef STM32F1xx +#include "stm32f1xx_ll_rcc.h" +#endif +#ifdef STM32F2xx +#include "stm32f2xx_ll_rcc.h" +#endif +#ifdef STM32F3xx +#include "stm32f3xx_ll_rcc.h" +#endif +#ifdef STM32F4xx +#include "stm32f4xx_ll_rcc.h" +#endif +#ifdef STM32F7xx +#include "stm32f7xx_ll_rcc.h" +#endif +#ifdef STM32L0xx +#include "stm32l0xx_ll_rcc.h" +#endif +#ifdef STM32L1xx +#include "stm32l1xx_ll_rcc.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_rcc.h" +#endif +#endif /* _STM32YYXX_LL_RCC_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_rng.c b/cores/arduino/stm32/LL/stm32yyxx_ll_rng.c similarity index 90% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_rng.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_rng.c index e486b3c648..96c5e341ee 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_rng.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_rng.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F2xx #include "stm32f2xx_ll_rng.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_rng.h b/cores/arduino/stm32/LL/stm32yyxx_ll_rng.h new file mode 100644 index 0000000000..014c2c952f --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_rng.h @@ -0,0 +1,19 @@ +#ifndef _STM32YYXX_LL_RNG_H_ +#define _STM32YYXX_LL_RNG_H_ + +#ifdef STM32F2xx +#include "stm32f2xx_ll_rng.h" +#endif +#ifdef STM32F4xx +#include "stm32f4xx_ll_rng.h" +#endif +#ifdef STM32F7xx +#include "stm32f7xx_ll_rng.h" +#endif +#ifdef STM32L0xx +#include "stm32l0xx_ll_rng.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_rng.h" +#endif +#endif /* _STM32YYXX_LL_RNG_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_rtc.c b/cores/arduino/stm32/LL/stm32yyxx_ll_rtc.c similarity index 94% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_rtc.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_rtc.c index 1607a02f0e..a0a5c4ea4d 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_rtc.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_rtc.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_ll_rtc.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_rtc.h b/cores/arduino/stm32/LL/stm32yyxx_ll_rtc.h new file mode 100644 index 0000000000..aa14a1b86f --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_rtc.h @@ -0,0 +1,31 @@ +#ifndef _STM32YYXX_LL_RTC_H_ +#define _STM32YYXX_LL_RTC_H_ + +#ifdef STM32F0xx +#include "stm32f0xx_ll_rtc.h" +#endif +#ifdef STM32F1xx +#include "stm32f1xx_ll_rtc.h" +#endif +#ifdef STM32F2xx +#include "stm32f2xx_ll_rtc.h" +#endif +#ifdef STM32F3xx +#include "stm32f3xx_ll_rtc.h" +#endif +#ifdef STM32F4xx +#include "stm32f4xx_ll_rtc.h" +#endif +#ifdef STM32F7xx +#include "stm32f7xx_ll_rtc.h" +#endif +#ifdef STM32L0xx +#include "stm32l0xx_ll_rtc.h" +#endif +#ifdef STM32L1xx +#include "stm32l1xx_ll_rtc.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_rtc.h" +#endif +#endif /* _STM32YYXX_LL_RTC_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_sdmmc.c b/cores/arduino/stm32/LL/stm32yyxx_ll_sdmmc.c similarity index 91% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_sdmmc.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_sdmmc.c index 71d8d17449..98f849b3cf 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_sdmmc.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_sdmmc.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F1xx #include "stm32f1xx_ll_sdmmc.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_sdmmc.h b/cores/arduino/stm32/LL/stm32yyxx_ll_sdmmc.h new file mode 100644 index 0000000000..77bed69e01 --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_sdmmc.h @@ -0,0 +1,22 @@ +#ifndef _STM32YYXX_LL_SDMMC_H_ +#define _STM32YYXX_LL_SDMMC_H_ + +#ifdef STM32F1xx +#include "stm32f1xx_ll_sdmmc.h" +#endif +#ifdef STM32F2xx +#include "stm32f2xx_ll_sdmmc.h" +#endif +#ifdef STM32F4xx +#include "stm32f4xx_ll_sdmmc.h" +#endif +#ifdef STM32F7xx +#include "stm32f7xx_ll_sdmmc.h" +#endif +#ifdef STM32L1xx +#include "stm32l1xx_ll_sdmmc.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_sdmmc.h" +#endif +#endif /* _STM32YYXX_LL_SDMMC_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_spi.c b/cores/arduino/stm32/LL/stm32yyxx_ll_spi.c similarity index 94% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_spi.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_spi.c index cf08a68db8..9883b57803 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_spi.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_spi.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_ll_spi.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_spi.h b/cores/arduino/stm32/LL/stm32yyxx_ll_spi.h new file mode 100644 index 0000000000..dbfc0540d5 --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_spi.h @@ -0,0 +1,31 @@ +#ifndef _STM32YYXX_LL_SPI_H_ +#define _STM32YYXX_LL_SPI_H_ + +#ifdef STM32F0xx +#include "stm32f0xx_ll_spi.h" +#endif +#ifdef STM32F1xx +#include "stm32f1xx_ll_spi.h" +#endif +#ifdef STM32F2xx +#include "stm32f2xx_ll_spi.h" +#endif +#ifdef STM32F3xx +#include "stm32f3xx_ll_spi.h" +#endif +#ifdef STM32F4xx +#include "stm32f4xx_ll_spi.h" +#endif +#ifdef STM32F7xx +#include "stm32f7xx_ll_spi.h" +#endif +#ifdef STM32L0xx +#include "stm32l0xx_ll_spi.h" +#endif +#ifdef STM32L1xx +#include "stm32l1xx_ll_spi.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_spi.h" +#endif +#endif /* _STM32YYXX_LL_SPI_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_swpmi.c b/cores/arduino/stm32/LL/stm32yyxx_ll_swpmi.c similarity index 65% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_swpmi.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_swpmi.c index cb8023b3f9..5c3e9528fe 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_swpmi.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_swpmi.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32L4xx #include "stm32l4xx_ll_swpmi.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_swpmi.h b/cores/arduino/stm32/LL/stm32yyxx_ll_swpmi.h new file mode 100644 index 0000000000..2d49ae9310 --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_swpmi.h @@ -0,0 +1,7 @@ +#ifndef _STM32YYXX_LL_SWPMI_H_ +#define _STM32YYXX_LL_SWPMI_H_ + +#ifdef STM32L4xx +#include "stm32l4xx_ll_swpmi.h" +#endif +#endif /* _STM32YYXX_LL_SWPMI_H_ */ diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_system.h b/cores/arduino/stm32/LL/stm32yyxx_ll_system.h new file mode 100644 index 0000000000..e92183b5d6 --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_system.h @@ -0,0 +1,31 @@ +#ifndef _STM32YYXX_LL_SYSTEM_H_ +#define _STM32YYXX_LL_SYSTEM_H_ + +#ifdef STM32F0xx +#include "stm32f0xx_ll_system.h" +#endif +#ifdef STM32F1xx +#include "stm32f1xx_ll_system.h" +#endif +#ifdef STM32F2xx +#include "stm32f2xx_ll_system.h" +#endif +#ifdef STM32F3xx +#include "stm32f3xx_ll_system.h" +#endif +#ifdef STM32F4xx +#include "stm32f4xx_ll_system.h" +#endif +#ifdef STM32F7xx +#include "stm32f7xx_ll_system.h" +#endif +#ifdef STM32L0xx +#include "stm32l0xx_ll_system.h" +#endif +#ifdef STM32L1xx +#include "stm32l1xx_ll_system.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_system.h" +#endif +#endif /* _STM32YYXX_LL_SYSTEM_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_tim.c b/cores/arduino/stm32/LL/stm32yyxx_ll_tim.c similarity index 94% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_tim.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_tim.c index 5b91160d46..479e5f26af 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_tim.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_tim.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_ll_tim.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_tim.h b/cores/arduino/stm32/LL/stm32yyxx_ll_tim.h new file mode 100644 index 0000000000..a86cbf9e16 --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_tim.h @@ -0,0 +1,31 @@ +#ifndef _STM32YYXX_LL_TIM_H_ +#define _STM32YYXX_LL_TIM_H_ + +#ifdef STM32F0xx +#include "stm32f0xx_ll_tim.h" +#endif +#ifdef STM32F1xx +#include "stm32f1xx_ll_tim.h" +#endif +#ifdef STM32F2xx +#include "stm32f2xx_ll_tim.h" +#endif +#ifdef STM32F3xx +#include "stm32f3xx_ll_tim.h" +#endif +#ifdef STM32F4xx +#include "stm32f4xx_ll_tim.h" +#endif +#ifdef STM32F7xx +#include "stm32f7xx_ll_tim.h" +#endif +#ifdef STM32L0xx +#include "stm32l0xx_ll_tim.h" +#endif +#ifdef STM32L1xx +#include "stm32l1xx_ll_tim.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_tim.h" +#endif +#endif /* _STM32YYXX_LL_TIM_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_usart.c b/cores/arduino/stm32/LL/stm32yyxx_ll_usart.c similarity index 94% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_usart.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_usart.c index 531dd236e4..20b8018759 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_usart.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_usart.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_ll_usart.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_usart.h b/cores/arduino/stm32/LL/stm32yyxx_ll_usart.h new file mode 100644 index 0000000000..045cb8ec65 --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_usart.h @@ -0,0 +1,31 @@ +#ifndef _STM32YYXX_LL_USART_H_ +#define _STM32YYXX_LL_USART_H_ + +#ifdef STM32F0xx +#include "stm32f0xx_ll_usart.h" +#endif +#ifdef STM32F1xx +#include "stm32f1xx_ll_usart.h" +#endif +#ifdef STM32F2xx +#include "stm32f2xx_ll_usart.h" +#endif +#ifdef STM32F3xx +#include "stm32f3xx_ll_usart.h" +#endif +#ifdef STM32F4xx +#include "stm32f4xx_ll_usart.h" +#endif +#ifdef STM32F7xx +#include "stm32f7xx_ll_usart.h" +#endif +#ifdef STM32L0xx +#include "stm32l0xx_ll_usart.h" +#endif +#ifdef STM32L1xx +#include "stm32l1xx_ll_usart.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_usart.h" +#endif +#endif /* _STM32YYXX_LL_USART_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_usb.c b/cores/arduino/stm32/LL/stm32yyxx_ll_usb.c similarity index 90% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_usb.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_usb.c index 111243b107..e8069b4e64 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_usb.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_usb.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F1xx #include "stm32f1xx_ll_usb.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_usb.h b/cores/arduino/stm32/LL/stm32yyxx_ll_usb.h new file mode 100644 index 0000000000..004d039834 --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_usb.h @@ -0,0 +1,19 @@ +#ifndef _STM32YYXX_LL_USB_H_ +#define _STM32YYXX_LL_USB_H_ + +#ifdef STM32F1xx +#include "stm32f1xx_ll_usb.h" +#endif +#ifdef STM32F2xx +#include "stm32f2xx_ll_usb.h" +#endif +#ifdef STM32F4xx +#include "stm32f4xx_ll_usb.h" +#endif +#ifdef STM32F7xx +#include "stm32f7xx_ll_usb.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_usb.h" +#endif +#endif /* _STM32YYXX_LL_USB_H_ */ diff --git a/cores/arduino/stm32/HAL/stm32yyxx_ll_utils.c b/cores/arduino/stm32/LL/stm32yyxx_ll_utils.c similarity index 94% rename from cores/arduino/stm32/HAL/stm32yyxx_ll_utils.c rename to cores/arduino/stm32/LL/stm32yyxx_ll_utils.c index 0a53ff0720..b89e04e6e7 100644 --- a/cores/arduino/stm32/HAL/stm32yyxx_ll_utils.c +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_utils.c @@ -1,5 +1,3 @@ -#include "stm32_def_build.h" - #ifdef STM32F0xx #include "stm32f0xx_ll_utils.c" #endif diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_utils.h b/cores/arduino/stm32/LL/stm32yyxx_ll_utils.h new file mode 100644 index 0000000000..63eb99fed5 --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_utils.h @@ -0,0 +1,31 @@ +#ifndef _STM32YYXX_LL_UTILS_H_ +#define _STM32YYXX_LL_UTILS_H_ + +#ifdef STM32F0xx +#include "stm32f0xx_ll_utils.h" +#endif +#ifdef STM32F1xx +#include "stm32f1xx_ll_utils.h" +#endif +#ifdef STM32F2xx +#include "stm32f2xx_ll_utils.h" +#endif +#ifdef STM32F3xx +#include "stm32f3xx_ll_utils.h" +#endif +#ifdef STM32F4xx +#include "stm32f4xx_ll_utils.h" +#endif +#ifdef STM32F7xx +#include "stm32f7xx_ll_utils.h" +#endif +#ifdef STM32L0xx +#include "stm32l0xx_ll_utils.h" +#endif +#ifdef STM32L1xx +#include "stm32l1xx_ll_utils.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_utils.h" +#endif +#endif /* _STM32YYXX_LL_UTILS_H_ */ diff --git a/cores/arduino/stm32/LL/stm32yyxx_ll_wwdg.h b/cores/arduino/stm32/LL/stm32yyxx_ll_wwdg.h new file mode 100644 index 0000000000..63eda2df9c --- /dev/null +++ b/cores/arduino/stm32/LL/stm32yyxx_ll_wwdg.h @@ -0,0 +1,31 @@ +#ifndef _STM32YYXX_LL_WWDG_H_ +#define _STM32YYXX_LL_WWDG_H_ + +#ifdef STM32F0xx +#include "stm32f0xx_ll_wwdg.h" +#endif +#ifdef STM32F1xx +#include "stm32f1xx_ll_wwdg.h" +#endif +#ifdef STM32F2xx +#include "stm32f2xx_ll_wwdg.h" +#endif +#ifdef STM32F3xx +#include "stm32f3xx_ll_wwdg.h" +#endif +#ifdef STM32F4xx +#include "stm32f4xx_ll_wwdg.h" +#endif +#ifdef STM32F7xx +#include "stm32f7xx_ll_wwdg.h" +#endif +#ifdef STM32L0xx +#include "stm32l0xx_ll_wwdg.h" +#endif +#ifdef STM32L1xx +#include "stm32l1xx_ll_wwdg.h" +#endif +#ifdef STM32L4xx +#include "stm32l4xx_ll_wwdg.h" +#endif +#endif /* _STM32YYXX_LL_WWDG_H_ */ diff --git a/cores/arduino/stm32/clock.c b/cores/arduino/stm32/clock.c index d66b240869..0088a61143 100644 --- a/cores/arduino/stm32/clock.c +++ b/cores/arduino/stm32/clock.c @@ -36,6 +36,7 @@ ****************************************************************************** */ #include "clock.h" +#include "stm32yyxx_ll_cortex.h" #ifdef __cplusplus extern "C" { diff --git a/cores/arduino/stm32/stm32_def.h b/cores/arduino/stm32/stm32_def.h index 304488f8c6..9fac51eac1 100644 --- a/cores/arduino/stm32/stm32_def.h +++ b/cores/arduino/stm32/stm32_def.h @@ -26,14 +26,6 @@ #error "STM32YYxx chip series is not defined in boards.txt." #endif -// Include Low Layers drivers -// LL raised several warnings, ignore them -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wunused-parameter" -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#include "HAL/stm32yyxx_ll.h" -#pragma GCC diagnostic pop - // Here define some compatibility #ifndef CAN1 #define CAN1 CAN diff --git a/platform.txt b/platform.txt index ce94d61608..01ac507e35 100644 --- a/platform.txt +++ b/platform.txt @@ -9,7 +9,7 @@ version=1.0.0 # STM compile variables # ---------------------- -compiler.stm.extra_include="-I{build.source.path}" "-I{build.core.path}/avr" "-I{build.core.path}/stm32" "-I{build.system.path}/Drivers/{build.series}_HAL_Driver/Inc/" "-I{build.system.path}/Drivers/{build.series}_HAL_Driver/Src/" "-I{build.system.path}/{build.series}/" "-I{build.variant.path}/usb" "-I{build.system.path}/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" "-I{build.system.path}/Middlewares/ST/STM32_USB_Device_Library/Core/Src" +compiler.stm.extra_include="-I{build.source.path}" "-I{build.core.path}/avr" "-I{build.core.path}/stm32" "-I{build.core.path}/stm32/LL" "-I{build.system.path}/Drivers/{build.series}_HAL_Driver/Inc/" "-I{build.system.path}/Drivers/{build.series}_HAL_Driver/Src/" "-I{build.system.path}/{build.series}/" "-I{build.variant.path}/usb" "-I{build.system.path}/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" "-I{build.system.path}/Middlewares/ST/STM32_USB_Device_Library/Core/Src" # "-I{build.system.path}/Drivers/BSP/Components" "-I{build.system.path}/Middlewares/Third_Party/FatFs/src" "-I{build.system.path}/Middlewares/ST/STM32_USB_Device_Library/Core/Src" "-I{build.system.path}/Middlewares/ST/STM32_USB_Device_Library/Class/HID/Inc"