From 9ec326f9317e46d2eb1b1feab49d22bd4c10ab19 Mon Sep 17 00:00:00 2001 From: charlown Date: Thu, 23 Sep 2021 23:20:16 +0800 Subject: [bsp/wch/arm/Libraries/ch32_drivers/drv_pwm_ch32f10x.c]:support pwm. [bsp/wch/arm/ch32f103c8-core]:add timer1~4(include 4 channel) pwm. --- bsp/wch/arm/Libraries/ch32_drivers/SConscript | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bsp/wch/arm/Libraries/ch32_drivers/SConscript') diff --git a/bsp/wch/arm/Libraries/ch32_drivers/SConscript b/bsp/wch/arm/Libraries/ch32_drivers/SConscript index c20517b2e4..fece8366d7 100644 --- a/bsp/wch/arm/Libraries/ch32_drivers/SConscript +++ b/bsp/wch/arm/Libraries/ch32_drivers/SConscript @@ -32,6 +32,9 @@ if GetDepend('SOC_ARM_SERIES_CH32F103'): if GetDepend(['RT_USING_HWTIMER', 'BSP_USING_HWTIMER']): src += ['drv_hwtimer_ch32f10x.c'] + if GetDepend(['RT_USING_PWM', 'BSP_USING_PWM']): + src += ['drv_pwm_ch32f10x.c'] + src += ['drv_common.c'] path = [cwd] -- cgit v1.3.1