Skip to content

Commit f2bc2b3

Browse files
committed
system(H5): update STM32C0xx hal default config
Allow some redefinition. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 6fef8ec commit f2bc2b3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

system/STM32H5xx/stm32h5xx_hal_conf_default.h

+8
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,18 @@ in voltage and temperature.*/
180180
/**
181181
* @brief This is the HAL system configuration section
182182
*/
183+
#if !defined (VDD_VALUE)
183184
#define VDD_VALUE 3300UL /*!< Value of VDD in mv */
185+
#endif
186+
#if !defined (TICK_INT_PRIORITY)
184187
#define TICK_INT_PRIORITY ((1UL<<__NVIC_PRIO_BITS) - 1UL) /*!< tick interrupt priority (lowest by default) */
188+
#endif
189+
#if !defined (USE_RTOS)
185190
#define USE_RTOS 0U
191+
#endif
192+
#if !defined (PREFETCH_ENABLE)
186193
#define PREFETCH_ENABLE 0U /*!< Enable prefetch */
194+
#endif
187195

188196
/* ############################################ Assert Selection #################################################### */
189197
/**

0 commit comments

Comments
 (0)