Skip to content

Commit 4facf26

Browse files
FRASTMfpistm
andcommitted
[L5] Add STM32L5xx HAL configuration files
Signed-off-by: Francois Ramu <[email protected]> Co-authored-by: Frederic.Pillon <[email protected]>
1 parent 6521c41 commit 4facf26

File tree

3 files changed

+477
-1
lines changed

3 files changed

+477
-1
lines changed

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

system/STM32L5xx/stm32l5xx_hal_conf.h

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#ifndef __STM32L5xx_HAL_CONF_H
2+
#define __STM32L5xx_HAL_CONF_H
3+
4+
#include "variant.h"
5+
6+
/* STM32L5xx specific HAL configuration options. */
7+
#if __has_include("hal_conf_custom.h")
8+
#include "hal_conf_custom.h"
9+
#else
10+
#if __has_include("hal_conf_extra.h")
11+
#include "hal_conf_extra.h"
12+
#endif
13+
#include "stm32l5xx_hal_conf_default.h"
14+
#endif
15+
16+
#endif /* __STM32L5xx_HAL_CONF_H */

0 commit comments

Comments
 (0)