Skip to content

Commit e9fe7de

Browse files
committed
system(U0): update STM32U0xx hal default config
Allow some redefinition. Signed-off-by: Frederic Pillon <[email protected]>
1 parent 0767c48 commit e9fe7de

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

system/STM32U0xx/stm32u0xx_hal_conf_default.h

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,21 @@ The real value may vary depending on the variations in voltage and temperature.*
152152
/**
153153
* @brief This is the HAL system configuration section
154154
*/
155+
#if !defined (VDD_VALUE)
155156
#define VDD_VALUE 3300U /*!< Value of VDD in mv */
157+
#endif /* VDD_VALUE */
158+
#if !defined (TICK_INT_PRIORITY)
156159
#define TICK_INT_PRIORITY ((1U<<__NVIC_PRIO_BITS) - 1U) /*!< tick interrupt priority */
160+
#endif /* TICK_INT_PRIORITY */
161+
#if !defined (USE_RTOS)
157162
#define USE_RTOS 0U
163+
#endif /* USE_RTOS */
164+
#if !defined (PREFETCH_ENABLE)
158165
#define PREFETCH_ENABLE 0U
166+
#endif /* PREFETCH_ENABLE */
167+
#if !defined (INSTRUCTION_CACHE_ENABLE)
159168
#define INSTRUCTION_CACHE_ENABLE 1U
169+
#endif /* INSTRUCTION_CACHE_ENABLE */
160170

161171
/* ########################## Assert Selection ############################## */
162172
/**
@@ -175,23 +185,57 @@ The real value may vary depending on the variations in voltage and temperature.*
175185
* for possible callback identifiers defined in HAL_PPP_CallbackIDTypeDef
176186
* for each PPP peripheral).
177187
*/
188+
#if !defined (USE_HAL_ADC_REGISTER_CALLBACKS)
178189
#define USE_HAL_ADC_REGISTER_CALLBACKS 0U /* ADC register callback disabled */
190+
#endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
191+
#if !defined (USE_HAL_CRYP_REGISTER_CALLBACKS)
179192
#define USE_HAL_CRYP_REGISTER_CALLBACKS 0U /* CRYP register callback disabled */
193+
#endif /* USE_HAL_CRYP_REGISTER_CALLBACKS */
194+
#if !defined (USE_HAL_DAC_REGISTER_CALLBACKS)
180195
#define USE_HAL_DAC_REGISTER_CALLBACKS 0U /* DAC register callback disabled */
196+
#endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
197+
#if !defined (USE_HAL_I2C_REGISTER_CALLBACKS)
181198
#define USE_HAL_I2C_REGISTER_CALLBACKS 0U /* I2C register callback disabled */
199+
#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */
200+
#if !defined (USE_HAL_IWDG_REGISTER_CALLBACKS)
182201
#define USE_HAL_IWDG_REGISTER_CALLBACKS 0U /* IWDG register callback disabled */
202+
#endif /* USE_HAL_IWDG_REGISTER_CALLBACKS */
203+
#if !defined (USE_HAL_IRDA_REGISTER_CALLBACKS)
183204
#define USE_HAL_IRDA_REGISTER_CALLBACKS 0U /* IRDA register callback disabled */
205+
#endif /* USE_HAL_IRDA_REGISTER_CALLBACKS */
206+
#if !defined (USE_HAL_LPTIM_REGISTER_CALLBACKS)
184207
#define USE_HAL_LPTIM_REGISTER_CALLBACKS 0U /* LPTIM register callback disabled */
208+
#endif /* USE_HAL_LPTIM_REGISTER_CALLBACKS */
209+
#if !defined (USE_HAL_LCD_REGISTER_CALLBACKS)
185210
#define USE_HAL_LCD_REGISTER_CALLBACKS 0U /* LCD register callback disabled */
211+
#endif /* USE_HAL_LCD_REGISTER_CALLBACKS */
212+
#if !defined (USE_HAL_PCD_REGISTER_CALLBACKS)
186213
#define USE_HAL_PCD_REGISTER_CALLBACKS 0U /* PCD register callback disabled */
214+
#endif /* USE_HAL_PCD_REGISTER_CALLBACKS */
215+
#if !defined (USE_HAL_RNG_REGISTER_CALLBACKS)
187216
#define USE_HAL_RNG_REGISTER_CALLBACKS 0U /* RNG register callback disabled */
217+
#endif /* USE_HAL_RNG_REGISTER_CALLBACKS */
218+
#if !defined (USE_HAL_RTC_REGISTER_CALLBACKS)
188219
#define USE_HAL_RTC_REGISTER_CALLBACKS 0U /* RTC register callback disabled */
220+
#endif /* USE_HAL_RTC_REGISTER_CALLBACKS */
221+
#if !defined (USE_HAL_SMARTCARD_REGISTER_CALLBACKS)
189222
#define USE_HAL_SMARTCARD_REGISTER_CALLBACKS 0U /* SMARTCARD register callback disabled */
223+
#endif /* USE_HAL_SMARTCARD_REGISTER_CALLBACKS */
224+
#if !defined (USE_HAL_SPI_REGISTER_CALLBACKS)
190225
#define USE_HAL_SPI_REGISTER_CALLBACKS 0U /* SPI register callback disabled */
226+
#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */
227+
#if !defined (USE_HAL_TIM_REGISTER_CALLBACKS)
191228
#define USE_HAL_TIM_REGISTER_CALLBACKS 0U /* TIM register callback disabled */
229+
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
230+
#if !defined (USE_HAL_UART_REGISTER_CALLBACKS)
192231
#define USE_HAL_UART_REGISTER_CALLBACKS 0U /* UART register callback disabled */
232+
#endif /* USE_HAL_UART_REGISTER_CALLBACKS */
233+
#if !defined (USE_HAL_USART_REGISTER_CALLBACKS)
193234
#define USE_HAL_USART_REGISTER_CALLBACKS 0U /* USART register callback disabled */
235+
#endif /* USE_HAL_USART_REGISTER_CALLBACKS */
236+
#if !defined (USE_HAL_WWDG_REGISTER_CALLBACKS)
194237
#define USE_HAL_WWDG_REGISTER_CALLBACKS 0U /* WWDG register callback disabled */
238+
#endif /* USE_HAL_WWDG_REGISTER_CALLBACKS */
195239

196240
/* Includes ------------------------------------------------------------------*/
197241
/**

0 commit comments

Comments
 (0)