From 5fa0656a9ab7b9cfe211cfec6187bdf2fbcefed5 Mon Sep 17 00:00:00 2001 From: z14git Date: Mon, 13 Apr 2020 15:28:12 +0800 Subject: [PATCH] add PWM1_CONFIG --- .../libraries/HAL_Drivers/config/f1/pwm_config.h | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 \