summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
authorz14git <[email protected]>2020-04-13 15:28:12 +0800
committerz14git <[email protected]>2020-04-13 15:28:12 +0800
commit5fa0656a9ab7b9cfe211cfec6187bdf2fbcefed5 (patch)
tree7e2be6a9da1885a4cea8562e89f31255407ca08e /bsp
parent50512e8a8c81cb743275788c8f25b0b68c4f9979 (diff)
add PWM1_CONFIG
Diffstat (limited to 'bsp')
-rw-r--r--bsp/stm32/libraries/HAL_Drivers/config/f1/pwm_config.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f1/pwm_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f1/pwm_config.h
index 1a5575de0c..50ea3791b6 100644
--- a/bsp/stm32/libraries/HAL_Drivers/config/f1/pwm_config.h
+++ b/bsp/stm32/libraries/HAL_Drivers/config/f1/pwm_config.h
@@ -17,6 +17,17 @@
extern "C" {
#endif
+#ifdef BSP_USING_PWM1
+#ifndef PWM1_CONFIG
+#define PWM1_CONFIG \
+ { \
+ .tim_handle.Instance = TIM1, \
+ .name = "pwm1", \
+ .channel = 0 \
+ }
+#endif /* PWM1_CONFIG */
+#endif /* BSP_USING_PWM1 */
+
#ifdef BSP_USING_PWM2
#ifndef PWM2_CONFIG
#define PWM2_CONFIG \