add PWM1_CONFIG
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 \
