Skip to content

Commit 6860c4a

Browse files
committed
system(wl3): update STM32WL3x hal default config
Allow some redefinition. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 6aa60eb commit 6860c4a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

system/STM32WL3x/stm32wl3x_hal_conf_default.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,15 @@ in voltage and temperature.*/
152152
/**
153153
* @brief This is the HAL system configuration section
154154
*/
155+
#if !defined (VDD_VALUE)
155156
#define VDD_VALUE (3300UL) /*!< Value of VDD in mv */
157+
#endif /* VDD_VALUE */
158+
#if !defined (TICK_INT_PRIORITY)
156159
#define TICK_INT_PRIORITY ((1UL<<__NVIC_PRIO_BITS) - 1UL) /*!< tick interrupt priority (lowest by default) */
160+
#endif /* TICK_INT_PRIORITY */
161+
#if !defined (USE_RTOS)
157162
#define USE_RTOS 0U
158-
163+
#endif
159164
/* ########################## Assert Selection ############################## */
160165
/**
161166
* @brief Uncomment the line below to expanse the "assert_param" macro in the
@@ -169,8 +174,9 @@ in voltage and temperature.*/
169174
* Activated: CRC code is present inside driver
170175
* Deactivated: CRC code cleaned from driver
171176
*/
172-
177+
#if !defined (USE_SPI_CRC)
173178
#define USE_SPI_CRC 1U
179+
#endif /* USE_SPI_CRC */
174180

175181
/* Includes ------------------------------------------------------------------*/
176182
/**

0 commit comments

Comments
 (0)