summaryrefslogtreecommitdiff
path: root/bsp/stm32/libraries
diff options
context:
space:
mode:
authorzuozuojia <[email protected]>2022-01-05 20:37:51 +0800
committerguo <[email protected]>2022-04-11 15:02:12 +0800
commit04971a96fee385a75f030d50919c0013b210a860 (patch)
treefb6007bfee26fdfc539085acd54453dd1a4c8f2e /bsp/stm32/libraries
parenta282faf26caa5441716adda1603120ac3a3916fb (diff)
[bsp/stm32] fix the bug of uart that not define pwm10 and pwm11
Diffstat (limited to 'bsp/stm32/libraries')
-rw-r--r--bsp/stm32/libraries/HAL_Drivers/drv_pwm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_pwm.c b/bsp/stm32/libraries/HAL_Drivers/drv_pwm.c
index fabb1438a3..6de229e827 100644
--- a/bsp/stm32/libraries/HAL_Drivers/drv_pwm.c
+++ b/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