summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Han <[email protected]>2019-08-15 10:13:31 +0800
committerWu Han <[email protected]>2019-08-15 10:15:06 +0800
commit487532dc9c79b3910bc8a29201551d83f82c1661 (patch)
treec316a31511da9a9bdc91176cac11dbc56d98d0df
parent3b252d5b9721bb7cc649dad832507937efc1e96c (diff)
[bsp][stm32][stm32f103-yf-ufun] add pwm config
-rw-r--r--bsp/stm32/stm32f103-yf-ufun/board/Kconfig23
1 files changed, 23 insertions, 0 deletions
diff --git a/bsp/stm32/stm32f103-yf-ufun/board/Kconfig b/bsp/stm32/stm32f103-yf-ufun/board/Kconfig
index 0265de83c7..6f81de4993 100644
--- a/bsp/stm32/stm32f103-yf-ufun/board/Kconfig
+++ b/bsp/stm32/stm32f103-yf-ufun/board/Kconfig
@@ -69,6 +69,29 @@ menu "On-chip Peripheral Drivers"
default 16
endif
+ menuconfig BSP_USING_PWM
+ bool "Enable PWM"
+ default n
+ select RT_USING_PWM
+ if BSP_USING_PWM
+ menuconfig BSP_USING_PWM2
+ bool "Enable timer2 output pwm"
+ default n
+ if BSP_USING_PWM2
+ config BSP_USING_PWM2_CH1
+ bool "Enable PWM2 channel 1"
+ default n
+
+ config BSP_USING_PWM2_CH2
+ bool "Enable PWM2 channel 2"
+ default n
+
+ config BSP_USING_PWM2_CH3
+ bool "Enable PWM2 channel 3"
+ default n
+ endif
+ endif
+
config BSP_USING_SDIO
bool "Enable SDCARD (sdio)"
select RT_USING_SDIO