mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 08:42:33 +00:00
The maximum period a PWM controller can generate depends on its input clock and its resolution (16-bit, 32-bit...). Setting a 1s max period generates error with some hardwares (mimxrt1064_evk) because of clock limitation. This patch fixes this issue by calculating maximum period of the PWM device to adjust max and min periods accordingly. Signed-off-by: Loic Poulain <loic.poulain@linaro.org> |
||
---|---|---|
.. | ||
blink_led | ||
blinky | ||
button | ||
disco | ||
fade_led | ||
minimal | ||
rgb_led | ||
servo_motor | ||
threads | ||
basic.rst |