Skip to content

Commit 84c80bd

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

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

system/STM32C0xx/stm32c0xx_hal_conf_default.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,21 @@ in voltage and temperature.*/
148148
/**
149149
* @brief This is the HAL system configuration section
150150
*/
151+
#if !defined (VDD_VALUE)
151152
#define VDD_VALUE (3300UL) /*!< Value of VDD in mv */
153+
#endif
154+
#if !defined (TICK_INT_PRIORITY)
152155
#define TICK_INT_PRIORITY ((1UL<<__NVIC_PRIO_BITS) - 1UL) /*!< tick interrupt priority */
156+
#endif
157+
#if !defined (USE_RTOS)
153158
#define USE_RTOS 0U
159+
#endif
160+
#if !defined (PREFETCH_ENABLE)
154161
#define PREFETCH_ENABLE 1U
162+
#endif
163+
#if !defined (INSTRUCTION_CACHE_ENABLE)
155164
#define INSTRUCTION_CACHE_ENABLE 1U
165+
#endif
156166

157167

158168
/* ########################## Assert Selection ############################## */

0 commit comments

Comments
 (0)