Skip to content

Commit

Permalink
drivers: pwm: Clarify period parameter
Browse files Browse the repository at this point in the history
Clarify what happens when the period parameter is zero or equal
to the period.

Signed-off-by: Alexander Wachter <[email protected]>
  • Loading branch information
alexanderwachter authored and carlescufi committed May 19, 2020
1 parent f6bbad8 commit 31ae13e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/drivers/pwm.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ __subsystem struct pwm_driver_api {

/**
* @brief Set the period and pulse width for a single PWM output.
*
* Passing 0 to the @param pulse will cause the pin to be driven to a constant
* inactive level.
* Passing a @param pulse equal @param period will cause the pin to be driven
* to a constant active level.
*
* @param dev Pointer to the device structure for the driver instance.
* @param pwm PWM pin.
Expand Down

0 comments on commit 31ae13e

Please sign in to comment.