Skip to content

Commit 8925892

Browse files
committed
system(C0): update STM32C0xx hal default config
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 9307dd3 commit 8925892

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

system/STM32C0xx/stm32c0xx_hal_conf_default.h

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/**
22
******************************************************************************
3-
* @file stm32c0xx_hal_conf.h
4-
* @author MCD Application Team
5-
* @brief HAL configuration template file.
3+
* @file stm32c0xx_hal_conf_default.h
4+
* @brief HAL default configuration template file.
65
* This file should be copied to the application folder and renamed
76
* to stm32c0xx_hal_conf.h.
87
******************************************************************************
@@ -19,8 +18,8 @@
1918
*/
2019

2120
/* Define to prevent recursive inclusion -------------------------------------*/
22-
#ifndef STM32C0xx_HAL_CONF_H
23-
#define STM32C0xx_HAL_CONF_H
21+
#ifndef STM32C0xx_HAL_CONF_DEFAULT_H
22+
#define STM32C0xx_HAL_CONF_DEFAULT_H
2423

2524
#ifdef __cplusplus
2625
extern "C" {
@@ -30,6 +29,12 @@ extern "C" {
3029
/* Exported constants --------------------------------------------------------*/
3130

3231
/* ########################## Module Selection ############################## */
32+
/**
33+
* @brief Include the default list of modules to be used in the HAL driver
34+
* and manage module deactivation
35+
*/
36+
#include "stm32yyxx_hal_conf.h"
37+
#if 0
3338
/**
3439
* @brief This is the list of modules to be used in the HAL driver
3540
*/
@@ -55,6 +60,7 @@ extern "C" {
5560
#define HAL_UART_MODULE_ENABLED
5661
#define HAL_USART_MODULE_ENABLED
5762
#define HAL_WWDG_MODULE_ENABLED
63+
#endif
5864

5965
/* ########################## Register Callbacks selection ############################## */
6066
/**
@@ -267,4 +273,4 @@ void assert_failed(uint8_t *file, uint32_t line);
267273
}
268274
#endif
269275

270-
#endif /* STM32C0xx_HAL_CONF_H */
276+
#endif /* STM32C0xx_HAL_CONF_DEFAULT_H */

0 commit comments

Comments
 (0)