Skip to content

Commit 02c5bdc

Browse files
committed
system(u3): update STM32U3xx hal default config
Allow some redefinition. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 9cb4726 commit 02c5bdc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

system/STM32U3xx/stm32u3xx_hal_conf_default.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,18 @@ extern "C" {
183183
/**
184184
* @brief This is the HAL system configuration section
185185
*/
186+
#if !defined (VDD_VALUE)
186187
#define VDD_VALUE 3300UL /*!< Value of VDD in mv */
188+
#endif /* VDD_VALUE */
189+
#if !defined (TICK_INT_PRIORITY)
187190
#define TICK_INT_PRIORITY ((1UL<<__NVIC_PRIO_BITS) - 1UL) /*!< tick interrupt priority (lowest by default) */
191+
#endif /* TICK_INT_PRIORITY */
192+
#if !defined (USE_RTOS)
188193
#define USE_RTOS 0U
194+
#endif /* USE_RTOS */
195+
#if !defined (PREFETCH_ENABLE)
189196
#define PREFETCH_ENABLE 1U /*!< Enable prefetch */
197+
#endif /* PREFETCH_ENABLE */
190198

191199
/* ########################## Assert Selection ############################## */
192200
/**

0 commit comments

Comments
 (0)