Skip to content

Commit b1a7ffd

Browse files
committed
system(wb0): update STM32WB0x hal default config
Allow some redefinition. Signed-off-by: Frederic Pillon <[email protected]>
1 parent b30e510 commit b1a7ffd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

system/STM32WB0x/stm32wb0x_hal_conf_default.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,15 @@ in voltage and temperature.*/
139139
/**
140140
* @brief This is the HAL system configuration section
141141
*/
142+
#if !defined (VDD_VALUE)
142143
#define VDD_VALUE (3300UL) /*!< Value of VDD in mv */
144+
#endif /* VDD_VALUE */
145+
#if !defined (TICK_INT_PRIORITY)
143146
#define TICK_INT_PRIORITY ((1UL<<__NVIC_PRIO_BITS) - 1UL) /*!< tick interrupt priority (lowest by default) */
147+
#endif /* TICK_INT_PRIORITY */
148+
#if !defined (USE_RTOS)
144149
#define USE_RTOS 0U
150+
#endif /* USE_RTOS */
145151

146152
/* ########################## Assert Selection ############################## */
147153
/**
@@ -156,8 +162,9 @@ in voltage and temperature.*/
156162
* Activated: CRC code is present inside driver
157163
* Deactivated: CRC code cleaned from driver
158164
*/
159-
165+
#if !defined (USE_SPI_CRC)
160166
#define USE_SPI_CRC 1U
167+
#endif /* USE_SPI_CRC */
161168

162169
/* ################ HSE Capacitor tuning configuration ###################### */
163170
/**

0 commit comments

Comments
 (0)