Skip to content

Commit 64066e8

Browse files
committed
system(c5): update STM32C5xx hal default config
Allow some redefinition. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent de24ba7 commit 64066e8

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎system/STM32C5xx/stm32c5xx_hal_conf_default.h‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,12 @@ extern "C" {
5151
/**
5252
* @brief This is the HAL system configuration section
5353
*/
54+
#if !defined(USE_HAL_TICK_INT_PRIORITY)
5455
#define USE_HAL_TICK_INT_PRIORITY HAL_TICK_INT_LOWEST_PRIORITY /*!< tick interrupt priority (lowest by default) */
56+
#endif
57+
#if !defined(USE_HAL_PREFETCH_ENABLE)
5558
#define USE_HAL_FLASH_PREFETCH 1U /*!< Enable FLASH prefetch */
59+
#endif
5660
/**
5761
* @}
5862
*/
@@ -64,7 +68,9 @@ extern "C" {
6468
/**
6569
* @brief Used by the HAL PPP Acquire/Release APIs when the define USE_HAL_MUTEX is set to 1
6670
*/
71+
#if !defined(USE_HAL_MUTEX)
6772
#define USE_HAL_MUTEX 0U
73+
#endif
6874
/**
6975
* @}
7076
*/
@@ -76,8 +82,12 @@ extern "C" {
7682
/**
7783
* @brief Run time parameter check activation
7884
*/
85+
#if !defined(USE_HAL_CHECK_PARAM)
7986
#define USE_HAL_CHECK_PARAM 0U
87+
#endif
88+
#if !defined(USE_HAL_SECURE_CHECK_PARAM)
8089
#define USE_HAL_SECURE_CHECK_PARAM 0U
90+
#endif
8191
/**
8292
* @}
8393
*/
@@ -89,7 +99,9 @@ extern "C" {
8999
/**
90100
* @brief Enable protection of state transition in thread safe
91101
*/
102+
#if !defined(USE_HAL_CHECK_PROCESS_STATE)
92103
#define USE_HAL_CHECK_PROCESS_STATE 0U
104+
#endif
93105
/**
94106
* @}
95107
*/

0 commit comments

Comments
 (0)