Skip to content
Commit 16d8ce51 authored by Loic Poulain's avatar Loic Poulain Committed by Maureen Helm
Browse files

sample: blink_led: Adjust PWM period



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: default avatarLoic Poulain <loic.poulain@linaro.org>
parent 5533da9a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment