Skip to content

Commit a12e123

Browse files
authored
Merge pull request #1249 from FRASTM/stm32L5
Support the new stm32L5xx serie
2 parents 0a0b2b9 + 6c9a704 commit a12e123

File tree

377 files changed

+297820
-25
lines changed

Some content is hidden

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

377 files changed

+297820
-25
lines changed

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_adc.h

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
#ifdef STM32L4xx
4242
#include "stm32l4xx_ll_adc.h"
4343
#endif
44+
#ifdef STM32L5xx
45+
#include "stm32l5xx_ll_adc.h"
46+
#endif
4447
#ifdef STM32MP1xx
4548
#include "stm32mp1xx_ll_adc.h"
4649
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_bus.h

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
#ifdef STM32L4xx
4242
#include "stm32l4xx_ll_bus.h"
4343
#endif
44+
#ifdef STM32L5xx
45+
#include "stm32l5xx_ll_bus.h"
46+
#endif
4447
#ifdef STM32MP1xx
4548
#include "stm32mp1xx_ll_bus.h"
4649
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_comp.h

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
#ifdef STM32L4xx
3030
#include "stm32l4xx_ll_comp.h"
3131
#endif
32+
#ifdef STM32L5xx
33+
#include "stm32l5xx_ll_comp.h"
34+
#endif
3235
#ifdef STM32WBxx
3336
#include "stm32wbxx_ll_comp.h"
3437
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_cortex.h

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
#ifdef STM32L4xx
4242
#include "stm32l4xx_ll_cortex.h"
4343
#endif
44+
#ifdef STM32L5xx
45+
#include "stm32l5xx_ll_cortex.h"
46+
#endif
4447
#ifdef STM32MP1xx
4548
#include "stm32mp1xx_ll_cortex.h"
4649
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_crc.h

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
#ifdef STM32L4xx
4242
#include "stm32l4xx_ll_crc.h"
4343
#endif
44+
#ifdef STM32L5xx
45+
#include "stm32l5xx_ll_crc.h"
46+
#endif
4447
#ifdef STM32WBxx
4548
#include "stm32wbxx_ll_crc.h"
4649
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_crs.h

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
#ifdef STM32L4xx
2121
#include "stm32l4xx_ll_crs.h"
2222
#endif
23+
#ifdef STM32L5xx
24+
#include "stm32l5xx_ll_crs.h"
25+
#endif
2326
#ifdef STM32WBxx
2427
#include "stm32wbxx_ll_crs.h"
2528
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_dac.h

+3
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,8 @@
4141
#ifdef STM32L4xx
4242
#include "stm32l4xx_ll_dac.h"
4343
#endif
44+
#ifdef STM32L5xx
45+
#include "stm32l5xx_ll_dac.h"
46+
#endif
4447
#pragma GCC diagnostic pop
4548
#endif /* _STM32YYXX_LL_DAC_H_ */

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_dma.h

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
#ifdef STM32L4xx
4242
#include "stm32l4xx_ll_dma.h"
4343
#endif
44+
#ifdef STM32L5xx
45+
#include "stm32l5xx_ll_dma.h"
46+
#endif
4447
#ifdef STM32MP1xx
4548
#include "stm32mp1xx_ll_dma.h"
4649
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_dmamux.h

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
#ifdef STM32L4xx
1818
#include "stm32l4xx_ll_dmamux.h"
1919
#endif
20+
#ifdef STM32L5xx
21+
#include "stm32l5xx_ll_dmamux.h"
22+
#endif
2023
#ifdef STM32MP1xx
2124
#include "stm32mp1xx_ll_dmamux.h"
2225
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_exti.h

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
#ifdef STM32L4xx
4242
#include "stm32l4xx_ll_exti.h"
4343
#endif
44+
#ifdef STM32L5xx
45+
#include "stm32l5xx_ll_exti.h"
46+
#endif
4447
#ifdef STM32MP1xx
4548
#include "stm32mp1xx_ll_exti.h"
4649
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_fmc.h

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
#ifdef STM32L4xx
2424
#include "stm32l4xx_ll_fmc.h"
2525
#endif
26+
#ifdef STM32L5xx
27+
#include "stm32l5xx_ll_fmc.h"
28+
#endif
2629
#ifdef STM32MP1xx
2730
#include "stm32mp1xx_ll_fmc.h"
2831
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_gpio.h

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
#ifdef STM32L4xx
4242
#include "stm32l4xx_ll_gpio.h"
4343
#endif
44+
#ifdef STM32L5xx
45+
#include "stm32l5xx_ll_gpio.h"
46+
#endif
4447
#ifdef STM32MP1xx
4548
#include "stm32mp1xx_ll_gpio.h"
4649
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_i2c.h

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
#ifdef STM32L4xx
4242
#include "stm32l4xx_ll_i2c.h"
4343
#endif
44+
#ifdef STM32L5xx
45+
#include "stm32l5xx_ll_i2c.h"
46+
#endif
4447
#ifdef STM32MP1xx
4548
#include "stm32mp1xx_ll_i2c.h"
4649
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_iwdg.h

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
#ifdef STM32L4xx
4242
#include "stm32l4xx_ll_iwdg.h"
4343
#endif
44+
#ifdef STM32L5xx
45+
#include "stm32l5xx_ll_iwdg.h"
46+
#endif
4447
#ifdef STM32WBxx
4548
#include "stm32wbxx_ll_iwdg.h"
4649
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_lptim.h

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
#ifdef STM32L4xx
2727
#include "stm32l4xx_ll_lptim.h"
2828
#endif
29+
#ifdef STM32L5xx
30+
#include "stm32l5xx_ll_lptim.h"
31+
#endif
2932
#ifdef STM32MP1xx
3033
#include "stm32mp1xx_ll_lptim.h"
3134
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_lpuart.h

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
#ifdef STM32L4xx
2121
#include "stm32l4xx_ll_lpuart.h"
2222
#endif
23+
#ifdef STM32L5xx
24+
#include "stm32l5xx_ll_lpuart.h"
25+
#endif
2326
#ifdef STM32WBxx
2427
#include "stm32wbxx_ll_lpuart.h"
2528
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_opamp.h

+3
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@
2020
#ifdef STM32L4xx
2121
#include "stm32l4xx_ll_opamp.h"
2222
#endif
23+
#ifdef STM32L5xx
24+
#include "stm32l5xx_ll_opamp.h"
25+
#endif
2326
#pragma GCC diagnostic pop
2427
#endif /* _STM32YYXX_LL_OPAMP_H_ */

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_pka.h

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
#ifdef STM32L4xx
99
#include "stm32l4xx_ll_pka.h"
1010
#endif
11+
#ifdef STM32L5xx
12+
#include "stm32l5xx_ll_pka.h"
13+
#endif
1114
#ifdef STM32WBxx
1215
#include "stm32wbxx_ll_pka.h"
1316
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_pwr.h

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
#ifdef STM32L4xx
4242
#include "stm32l4xx_ll_pwr.h"
4343
#endif
44+
#ifdef STM32L5xx
45+
#include "stm32l5xx_ll_pwr.h"
46+
#endif
4447
#ifdef STM32MP1xx
4548
#include "stm32mp1xx_ll_pwr.h"
4649
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_rcc.h

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
#ifdef STM32L4xx
4242
#include "stm32l4xx_ll_rcc.h"
4343
#endif
44+
#ifdef STM32L5xx
45+
#include "stm32l5xx_ll_rcc.h"
46+
#endif
4447
#ifdef STM32MP1xx
4548
#include "stm32mp1xx_ll_rcc.h"
4649
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_rng.h

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
#ifdef STM32L4xx
3030
#include "stm32l4xx_ll_rng.h"
3131
#endif
32+
#ifdef STM32L5xx
33+
#include "stm32l5xx_ll_rng.h"
34+
#endif
3235
#ifdef STM32WBxx
3336
#include "stm32wbxx_ll_rng.h"
3437
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_rtc.h

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
#ifdef STM32L4xx
4242
#include "stm32l4xx_ll_rtc.h"
4343
#endif
44+
#ifdef STM32L5xx
45+
#include "stm32l5xx_ll_rtc.h"
46+
#endif
4447
#ifdef STM32MP1xx
4548
#include "stm32mp1xx_ll_rtc.h"
4649
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_sdmmc.h

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
#ifdef STM32L4xx
2727
#include "stm32l4xx_ll_sdmmc.h"
2828
#endif
29+
#ifdef STM32L5xx
30+
#include "stm32l5xx_ll_sdmmc.h"
31+
#endif
2932
#ifdef STM32MP1xx
3033
#include "stm32mp1xx_ll_sdmmc.h"
3134
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_spi.h

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
#ifdef STM32L4xx
4242
#include "stm32l4xx_ll_spi.h"
4343
#endif
44+
#ifdef STM32L5xx
45+
#include "stm32l5xx_ll_spi.h"
46+
#endif
4447
#ifdef STM32MP1xx
4548
#include "stm32mp1xx_ll_spi.h"
4649
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_system.h

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
#ifdef STM32L4xx
4242
#include "stm32l4xx_ll_system.h"
4343
#endif
44+
#ifdef STM32L5xx
45+
#include "stm32l5xx_ll_system.h"
46+
#endif
4447
#ifdef STM32MP1xx
4548
#include "stm32mp1xx_ll_system.h"
4649
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_tim.h

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
#ifdef STM32L4xx
4242
#include "stm32l4xx_ll_tim.h"
4343
#endif
44+
#ifdef STM32L5xx
45+
#include "stm32l5xx_ll_tim.h"
46+
#endif
4447
#ifdef STM32MP1xx
4548
#include "stm32mp1xx_ll_tim.h"
4649
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_ucpd.h

+3
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@
1111
#ifdef STM32G4xx
1212
#include "stm32g4xx_ll_ucpd.h"
1313
#endif
14+
#ifdef STM32L5xx
15+
#include "stm32l5xx_ll_ucpd.h"
16+
#endif
1417
#pragma GCC diagnostic pop
1518
#endif /* _STM32YYXX_LL_UCPD_H_ */

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_usart.h

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
#ifdef STM32L4xx
4242
#include "stm32l4xx_ll_usart.h"
4343
#endif
44+
#ifdef STM32L5xx
45+
#include "stm32l5xx_ll_usart.h"
46+
#endif
4447
#ifdef STM32MP1xx
4548
#include "stm32mp1xx_ll_usart.h"
4649
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_usb.h

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
#ifdef STM32L4xx
3939
#include "stm32l4xx_ll_usb.h"
4040
#endif
41+
#ifdef STM32L5xx
42+
#include "stm32l5xx_ll_usb.h"
43+
#endif
4144
#ifdef STM32WBxx
4245
#include "stm32wbxx_ll_usb.h"
4346
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_utils.h

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
#ifdef STM32L4xx
4242
#include "stm32l4xx_ll_utils.h"
4343
#endif
44+
#ifdef STM32L5xx
45+
#include "stm32l5xx_ll_utils.h"
46+
#endif
4447
#ifdef STM32MP1xx
4548
#include "stm32mp1xx_ll_utils.h"
4649
#endif

Diff for: cores/arduino/stm32/LL/stm32yyxx_ll_wwdg.h

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
#ifdef STM32L4xx
4242
#include "stm32l4xx_ll_wwdg.h"
4343
#endif
44+
#ifdef STM32L5xx
45+
#include "stm32l5xx_ll_wwdg.h"
46+
#endif
4447
#ifdef STM32MP1xx
4548
#include "stm32mp1xx_ll_wwdg.h"
4649
#endif

Diff for: cores/arduino/stm32/backup.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ static inline void setBackupRegister(uint32_t index, uint32_t value)
125125
LL_RTC_BKP_SetRegister(BKP, index, value);
126126
#elif defined(STM32G0xx)
127127
LL_RTC_BKP_SetRegister(TAMP, index, value);
128-
#elif defined(STM32G4xx)
128+
#elif defined(STM32G4xx) || defined(STM32L5xx)
129129
LL_RTC_BKP_SetRegister(RTC, index, value);
130130
#else
131131
#ifdef ENABLE_BACKUP_SUPPORT
@@ -143,7 +143,7 @@ static inline uint32_t getBackupRegister(uint32_t index)
143143
return LL_RTC_BKP_GetRegister(BKP, index);
144144
#elif defined(STM32G0xx)
145145
return LL_RTC_BKP_GetRegister(TAMP, index);
146-
#elif defined(STM32G4xx)
146+
#elif defined(STM32G4xx) || defined(STM32L5xx)
147147
return LL_RTC_BKP_GetRegister(RTC, index);
148148
#else
149149
#ifdef ENABLE_BACKUP_SUPPORT

Diff for: cores/arduino/stm32/stm32_def.h

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
#include "stm32l1xx.h"
4747
#elif defined(STM32L4xx)
4848
#include "stm32l4xx.h"
49+
#elif defined(STM32L5xx)
50+
#include "stm32l5xx.h"
4951
#elif defined(STM32MP1xx)
5052
#include "stm32mp1xx.h"
5153
#elif defined(STM32WBxx)

Diff for: cores/arduino/stm32/stm32_def_build.h

+4
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,10 @@
376376
#define CMSIS_STARTUP_FILE "startup_stm32l4s7xx.s"
377377
#elif defined(STM32L4S9xx)
378378
#define CMSIS_STARTUP_FILE "startup_stm32l4s9xx.s"
379+
#elif defined(STM32L552xx)
380+
#define CMSIS_STARTUP_FILE "startup_stm32l552xx.s"
381+
#elif defined(STM32L562xx)
382+
#define CMSIS_STARTUP_FILE "startup_stm32l562xx.s"
379383
#elif defined(STM32MP151Axx)
380384
#define CMSIS_STARTUP_FILE "startup_stm32mp151a_cm4 .s"
381385
#elif defined(STM32MP151Cxx)

Diff for: cores/arduino/stm32/stm32yyxx_hal_conf.h

+8-1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@
9696
#undef HAL_QSPI_MODULE_ENABLED
9797
#endif
9898

99+
#if !defined(HAL_OSPI_MODULE_DISABLED)
100+
/*#define HAL_OSPI_MODULE_ENABLED*/
101+
#else
102+
#undef HAL_OSPI_MODULE_ENABLED
103+
#endif
104+
99105
/*
100106
* Disabled HAL modules, handled thanks Arduino menu
101107
*/
@@ -128,6 +134,7 @@
128134
HAL_HCD_MODULE_ENABLED
129135
HAL_HRTIM_MODULE_ENABLED
130136
HAL_HSEM_MODULE_ENABLED
137+
HAL_ICACHE_MODULE_ENABLED
131138
HAL_IPCC_MODULE_ENABLED
132139
HAL_IRDA_MODULE_ENABLED
133140
HAL_IWDG_MODULE_ENABLED // IWD built-in library uses LL
@@ -141,7 +148,7 @@
141148
HAL_NAND_MODULE_ENABLED
142149
HAL_NOR_MODULE_ENABLED
143150
HAL_OPAMP_MODULE_ENABLED
144-
HAL_OSPI_MODULE_ENABLED
151+
HAL_OTFDEC_MODULE_ENABLED
145152
HAL_PCCARD_MODULE_ENABLED
146153
HAL_PKA_MODULE_ENABLED
147154
HAL_RAMECC_MODULE_ENABLED

0 commit comments

Comments
 (0)