zephyr/samples
Sebastian Bøe 830b8bdc17 samples: threads: Rewrite misleading sample
The basic/threads sample is printing a log that looks like this:

Toggle USR0 LED: Counter = 0
Toggle USR1 LED: Counter = 0
Toggle USR0 LED: Counter = 1
Toggle USR0 LED: Counter = 2
Toggle USR0 LED: Counter = 3
Toggle USR0 LED: Counter = 4

From that log you would think that it was logging when leds were
blinking, but actually the led-threads might have crashed, and it
would just continue logging anyway. All it's doing is executing
printk's at roughly the same frequency as the LED's are blinking.

This patch rewrites the sample to use a FIFO so that the printk's only
trigger if the LEDs are actually blinking.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2018-01-08 14:25:11 -05:00
..
application_development/external_lib cmake: Ninja: Fix the external_lib sample 2018-01-03 13:19:59 -05:00
basic samples: threads: Rewrite misleading sample 2018-01-08 14:25:11 -05:00
bluetooth cmake: remove IS_TEST handling 2018-01-08 10:03:57 -05:00
boards cmake: remove IS_TEST handling 2018-01-08 10:03:57 -05:00
cpp_synchronization samples: remove more build_only tags 2017-12-28 20:24:29 -05:00
drivers samples: drivers: remove build_only flag 2017-12-28 20:24:29 -05:00
grove samples: remove more build_only tags 2017-12-28 20:24:29 -05:00
hello_world cmake: remove IS_TEST handling 2018-01-08 10:03:57 -05:00
mpu cmake: remove IS_TEST handling 2018-01-08 10:03:57 -05:00
net cmake: Ported mbedTLS to use Zephyr interface libraries 2018-01-02 22:09:01 -05:00
nfc/nfc_hello samples: remove more build_only tags 2017-12-28 20:24:29 -05:00
philosophers tests: remove obsolete CONFIG_MDEF 2018-01-08 08:08:45 -05:00
sensor samples: sensor: add amg88xx sample 2018-01-07 16:04:45 -05:00
subsys tests/samples: remove unknown option LOG_CBUFFER/LOGGER_BACKEND 2018-01-08 08:08:45 -05:00
synchronization cmake: remove IS_TEST handling 2018-01-08 10:03:57 -05:00
testing tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
kernel.rst
samples.rst