zephyr/samples/basic
Andrzej Głąbek 6e8132d1ae samples: blink_led: Fix the behavior of the sample
Commit 16d8ce519c introduced changes
that caused this sample to no longer behave according to documentation
and for some hardware to no longer work at all.
On nRF51 SoCs for instance, the reported number of cycles per second
is 16M, what makes the calculated max_period and min_period to be 16
and 0 microseconds, respectively, what effectively makes it impossible
for the sample to return to the initial blinking frequency. Moreover,
with such short PWM periods, the blinking is not even noticeable.

This patch partially reverts the changes mentioned above, and instead
of calculating max_period and min_period basing on the reported clock
rate, it tries to only decrease the max_period if needed, accordingly
to what the used hardware can handle.
Documentation is also updated to mention the possible change in
observed behavior of the sample on some hardware.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2019-11-13 14:54:45 -06:00
..
blink_led samples: blink_led: Fix the behavior of the sample 2019-11-13 14:54:45 -06:00
blinky sample/tests: replace DT_ define filters with dt_ functions 2019-11-04 09:02:14 -05:00
button sample/tests: replace DT_ define filters with dt_ functions 2019-11-04 09:02:14 -05:00
fade_led sample/tests: replace DT_ define filters with dt_ functions 2019-11-04 09:02:14 -05:00
minimal doc: Use west everywhere to build and flash 2019-08-27 19:36:24 +02:00
rgb_led sample/tests: replace DT_ define filters with dt_ functions 2019-11-04 09:02:14 -05:00
servo_motor sample/tests: replace DT_ define filters with dt_ functions 2019-11-04 09:02:14 -05:00
threads sample/tests: replace DT_ define filters with dt_ functions 2019-11-04 09:02:14 -05:00
basic.rst