zephyr/samples
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
..
application_development boards: Update defconfigs after renaming to USB_NRFX 2019-11-13 10:33:38 -06:00
basic samples: blink_led: Fix the behavior of the sample 2019-11-13 14:54:45 -06:00
bluetooth samples: ipsp: use log_strdup(transient_string) 2019-11-12 16:43:52 +02:00
boards samples: intel_s1000_crb: set CONFIG_NEWLIB_LIBC for math.h 2019-11-13 06:26:10 -06:00
cpp_synchronization cleanup: include/: move misc/printk.h to sys/printk.h 2019-06-27 22:55:49 -04:00
display coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
drivers drivers: spi_nor: support deep-power-down mode 2019-11-09 15:26:06 +01:00
gui boards: reel_board: revise SPI routing 2019-10-23 20:58:19 -04:00
hello_world doc: add how to exit from QEMU in samples 2019-09-02 12:06:08 -04:00
mpu cleanup: include/: move flash.h to drivers/flash.h 2019-06-27 22:55:49 -04:00
net driver: uart: make deprecation effective 2019-11-07 12:44:15 -06:00
nfc/nfc_hello cleanup: include/: move misc/byteorder.h to sys/byteorder.h 2019-06-27 22:55:49 -04:00
philosophers coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
portability x86: consolidate x86_64 architecture, SoC and boards 2019-10-25 17:57:55 -04:00
posix samples: posix: gettimeofday: Demo gettimeofday() returning correct time 2019-10-28 13:04:35 +02:00
sensor sensor: hmc5883l: convert to device tree 2019-11-08 12:12:38 -06:00
shields shields: x_nucleo_iks01a1: Enable IRQ pin for LIS3MDL magn sensor 2019-11-06 17:10:49 +01:00
smp coccinelle: update int literal to timeout 2019-11-08 19:30:42 -05:00
subsys drivers: Add support for nRF52833 in several drivers 2019-11-13 10:33:38 -06:00
synchronization tests: tracing: add tests for tracing features 2019-09-27 14:42:22 -04:00
testing/integration license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
userspace doc: fix misspelling in userspace doc 2019-11-12 08:47:14 +01:00
video samples: video: Fix board reference name 2019-10-30 18:33:18 +01:00
classic.rst doc: restructure and create index pages 2019-02-05 07:04:40 -05:00
index.rst Samples: Add SMP Pi 2019-11-03 12:41:29 +01:00