diff options
Diffstat (limited to 'os/hal/templates/pwm_lld.c')
-rw-r--r-- | os/hal/templates/pwm_lld.c | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/os/hal/templates/pwm_lld.c b/os/hal/templates/pwm_lld.c index 5a4838ade..7e904765a 100644 --- a/os/hal/templates/pwm_lld.c +++ b/os/hal/templates/pwm_lld.c @@ -102,19 +102,29 @@ bool_t pwm_lld_is_enabled(PWMDriver *pwmp, pwmchannel_t channel) { }
/**
- * @brief Disables, enables or reprograms a PWM channel.
+ * @brief Enables a PWM channel.
*
* @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, note that
- * specifying zero disables the channel and enforces
- * the output to the idle state.
+ * @param[in] width PWM pulse width as clock pulses number
*
* @notapi
*/
-void pwm_lld_set_channel(PWMDriver *pwmp,
- pwmchannel_t channel,
- pwmcnt_t width) {
+void pwm_lld_enable_channel(PWMDriver *pwmp,
+ pwmchannel_t channel,
+ pwmcnt_t width) {
+
+}
+
+/**
+ * @brief Disables a PWM channel.
+ * @details The channel is disabled and its output line returned to the
+ * idle state.
+ *
+ * @param[in] pwmp pointer to a @p PWMDriver object
+ * @param[in] channel PWM channel identifier (0...PWM_CHANNELS-1)
+ */
+void pwm_lld_disable_channel(PWMDriver *pwmp, pwmchannel_t channel) {
}
|