From 286eb4286d5a250e70d42802706b67e6a55a487a Mon Sep 17 00:00:00 2001 From: graduateDesign Date: Sat, 9 Oct 2021 00:34:35 +0800 Subject: [PATCH] add module in config.h --- bsp/stm32f103c8/Core/Inc/stm32f1xx_hal_conf.h | 3 +++ bsp/stm32f103c8/MDK-ARM/stm32f103c8.uvprojx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bsp/stm32f103c8/Core/Inc/stm32f1xx_hal_conf.h b/bsp/stm32f103c8/Core/Inc/stm32f1xx_hal_conf.h index 452125b58..f9c7c6e8e 100644 --- a/bsp/stm32f103c8/Core/Inc/stm32f1xx_hal_conf.h +++ b/bsp/stm32f103c8/Core/Inc/stm32f1xx_hal_conf.h @@ -75,6 +75,9 @@ #define HAL_GPIO_MODULE_ENABLED #define HAL_PWR_MODULE_ENABLED #define HAL_RCC_MODULE_ENABLED +#define HAL_UART_MODULE_ENABLED +#define HAL_TIM_MODULE_ENABLED +#define HAL_ADC_MODULE_ENABLED /* ########################## Oscillator Values adaptation ####################*/ /** diff --git a/bsp/stm32f103c8/MDK-ARM/stm32f103c8.uvprojx b/bsp/stm32f103c8/MDK-ARM/stm32f103c8.uvprojx index 2cbb49cee..25d3f22bf 100644 --- a/bsp/stm32f103c8/MDK-ARM/stm32f103c8.uvprojx +++ b/bsp/stm32f103c8/MDK-ARM/stm32f103c8.uvprojx @@ -338,7 +338,7 @@ 0 - USE_HAL_DRIVER,STM32F103xB,HAL_ADC_MODULE_ENABLED,HAL_UART_MODULE_ENABLED,HAL_TIM_MODULE_ENABLED + USE_HAL_DRIVER,STM32F103xB ../Core/Inc; ../Drivers/STM32F1xx_HAL_Driver/Inc; ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy; ../Drivers/CMSIS/Device/ST/STM32F1xx/Include; ../Drivers/CMSIS/Include; ..\pikascript\pikascript-core; ..\pikascript\pikascript-lib\STM32; ..\pikascript\pikascript-api