diff options
| author | yangjie11 <[email protected]> | 2019-04-23 19:36:28 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-04-23 19:36:28 +0800 |
| commit | e0345397f8ebaeadba3b72bafc734633cad3df0e (patch) | |
| tree | 6ab6f058c607d6670c9126f0818579e9ac9d20b1 | |
| parent | e2ff6d37631c31f8fd7582d7fa5d121d1ea903c0 (diff) | |
Update drv_pwm.c
| -rw-r--r-- | bsp/stm32/libraries/HAL_Drivers/drv_pwm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_pwm.c b/bsp/stm32/libraries/HAL_Drivers/drv_pwm.c index 6f1c123a56..a6835e682f 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drv_pwm.c +++ b/bsp/stm32/libraries/HAL_Drivers/drv_pwm.c @@ -415,13 +415,13 @@ static void pwm_get_channel(void) stm32_pwm_obj[PWM1_INDEX].channel |= 1 << 0; #endif #ifdef BSP_USING_PWM1_CH2 - stm32_pwm_obj[PWM1_INDEX].channel |= 1 << 2; + stm32_pwm_obj[PWM1_INDEX].channel |= 1 << 1; #endif #ifdef BSP_USING_PWM1_CH3 - stm32_pwm_obj[PWM1_INDEX].channel |= 1 << 3; + stm32_pwm_obj[PWM1_INDEX].channel |= 1 << 2; #endif #ifdef BSP_USING_PWM1_CH4 - stm32_pwm_obj[PWM1_INDEX].channel |= 1 << 4; + stm32_pwm_obj[PWM1_INDEX].channel |= 1 << 3; #endif #ifdef BSP_USING_PWM2_CH1 stm32_pwm_obj[PWM2_INDEX].channel |= 1 << 0; |
