瀏覽代碼

[bsp/stm32] fix the bug of uart that not define pwm10 and pwm11

zuozuojia 3 年之前
父節點
當前提交
04971a96fe
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      bsp/stm32/libraries/HAL_Drivers/drv_pwm.c

+ 6 - 0
bsp/stm32/libraries/HAL_Drivers/drv_pwm.c

@@ -581,6 +581,12 @@ static void pwm_get_channel(void)
 #ifdef BSP_USING_PWM9_CH4
     stm32_pwm_obj[PWM9_INDEX].channel |= 1 << 3;
 #endif
+#ifdef BSP_USING_PWM10_CH1
+    stm32_pwm_obj[PWM10_INDEX].channel |= 1 << 0;
+#endif
+#ifdef BSP_USING_PWM11_CH1
+    stm32_pwm_obj[PWM11_INDEX].channel |= 1 << 0;
+#endif
 #ifdef BSP_USING_PWM12_CH1
     stm32_pwm_obj[PWM12_INDEX].channel |= 1 << 0;
 #endif