mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-19 06:41:44 +08:00
[bsp][stm32] fix PWMN_CMD_DISABLE config
This commit is contained in:
parent
03ebd19a74
commit
c339386c07
@ -314,7 +314,7 @@ static rt_err_t drv_pwm_control(struct rt_device_pwm *device, int cmd, void *arg
|
||||
case PWM_CMD_ENABLE:
|
||||
return drv_pwm_enable(htim, configuration, RT_TRUE);
|
||||
case PWMN_CMD_DISABLE:
|
||||
configuration->complementary = RT_TRUE;
|
||||
configuration->complementary = RT_FALSE;
|
||||
case PWM_CMD_DISABLE:
|
||||
return drv_pwm_enable(htim, configuration, RT_FALSE);
|
||||
case PWM_CMD_SET:
|
||||
|
Loading…
x
Reference in New Issue
Block a user