diff options
Diffstat (limited to 'os/hal/src')
-rw-r--r-- | os/hal/src/pwm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/os/hal/src/pwm.c b/os/hal/src/pwm.c index ef4260629..f026a62ef 100644 --- a/os/hal/src/pwm.c +++ b/os/hal/src/pwm.c @@ -43,7 +43,7 @@ void pwmInit(void) { void pwmObjectInit(PWMDriver *pwmp) {
pwmp->pd_state = PWM_STOP;
- pwmp->pwm_config = NULL;
+ pwmp->pd_config = NULL;
}
/**
@@ -130,7 +130,8 @@ void pwmEnableChannel(PWMDriver *pwmp, /**
* @brief Disables a PWM channel.
- * @details The channel output line is returned to its idle state and disabled.
+ * @details The channel is disabled and its output line returned to the
+ * idle state.
* * @param[in] pwmp pointer to the @p PWMDriver object
* @param[in] channel PWM channel identifier
|