Skip to content

Commit 3b2a2ee

Browse files
committed
system: WL: update STM32WLxx hal default config
Review some definitions and allow some redefinition. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent bb71514 commit 3b2a2ee

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

cores/arduino/stm32/stm32yyxx_hal_conf.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@
133133
HAL_FMAC_MODULE_ENABLED
134134
HAL_FMPI2C_MODULE_ENABLED
135135
HAL_GFXMMU_MODULE_ENABLED
136+
HAL_GTZC_MODULE_ENABLED
136137
HAL_HASH_MODULE_ENABLED
137138
HAL_HCD_MODULE_ENABLED
138139
HAL_HRTIM_MODULE_ENABLED
@@ -160,6 +161,7 @@
160161
HAL_SMBUS_MODULE_ENABLED
161162
HAL_SPDIFRX_MODULE_ENABLED
162163
HAL_SRAM_MODULE_ENABLED
164+
HAL_SUBGHZ_MODULE_ENABLED
163165
HAL_SWPMI_MODULE_ENABLED
164166
HAL_TSC_MODULE_ENABLED
165167
HAL_USART_MODULE_ENABLED

system/STM32WLxx/stm32wlxx_hal_conf_default.h

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,24 @@
164164
/**
165165
* @brief This is the HAL system configuration section
166166
*/
167+
#if !defined (VDD_VALUE)
167168
#define VDD_VALUE 3300U /*!< Value of VDD in mv */
168-
#define TICK_INT_PRIORITY ((1uL <<__NVIC_PRIO_BITS) - 1uL) /*!< tick interrupt priority (lowest by default) */
169+
#endif
170+
#if !defined (TICK_INT_PRIORITY)
171+
#define TICK_INT_PRIORITY 0x00U /*!< tick interrupt priority */
172+
#endif
173+
#if !defined (USE_RTOS)
169174
#define USE_RTOS 0U
175+
#endif
176+
#if !defined (PREFETCH_ENABLE)
170177
#define PREFETCH_ENABLE 0U
178+
#endif
179+
#if !defined (INSTRUCTION_CACHE_ENABLE)
171180
#define INSTRUCTION_CACHE_ENABLE 1U
181+
#endif
182+
#if !defined (DATA_CACHE_ENABLE)
172183
#define DATA_CACHE_ENABLE 1U
184+
#endif
173185

174186
/* ########################## Assert Selection ############################## */
175187
/**
@@ -184,13 +196,14 @@
184196
* Activated: CRC code is present inside driver
185197
* Deactivated: CRC code cleaned from driver
186198
*/
187-
188-
#define USE_SPI_CRC 1U
199+
#if !defined (USE_SPI_CRC)
200+
#define USE_SPI_CRC 0U
201+
#endif
189202

190203
/* ################## CRYP peripheral configuration ########################## */
191-
204+
#if !defined (USE_HAL_CRYP_SUSPEND_RESUME)
192205
#define USE_HAL_CRYP_SUSPEND_RESUME 1U
193-
206+
#endif
194207

195208
/* Includes ------------------------------------------------------------------*/
196209
/**

0 commit comments

Comments
 (0)