diff options
Diffstat (limited to 'os/hal/src/pwm.c')
-rw-r--r-- | os/hal/src/pwm.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/os/hal/src/pwm.c b/os/hal/src/pwm.c index ecf9eba3f..ec5bd65be 100644 --- a/os/hal/src/pwm.c +++ b/os/hal/src/pwm.c @@ -118,8 +118,7 @@ void pwmStop(PWMDriver *pwmp) { *
* @param[in] pwmp pointer to a @p PWMDriver object
* @param[in] channel PWM channel identifier (0...PWM_CHANNELS-1)
- * @param[in] width PWM pulse width as clock pulses number, setting the
- * width at zero is equivalent to disabling the channel
+ * @param[in] width PWM pulse width as clock pulses number
*
* @api
*/
@@ -133,7 +132,7 @@ void pwmEnableChannel(PWMDriver *pwmp, chSysLock();
chDbgAssert(pwmp->pd_state == PWM_READY,
"pwmEnableChannel(), #1", "not ready");
- pwm_lld_set_channel(pwmp, channel, width);
+ pwm_lld_enable_channel(pwmp, channel, width);
chSysUnlock();
}
@@ -155,7 +154,7 @@ void pwmDisableChannel(PWMDriver *pwmp, pwmchannel_t channel) { chSysLock();
chDbgAssert(pwmp->pd_state == PWM_READY,
"pwmDisableChannel(), #1", "not ready");
- pwm_lld_set_channel(pwmp, channel, 0);
+ pwm_lld_disable_channel(pwmp, channel);
chSysUnlock();
}
|