zephyr/samples/basic
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
..
blink_led samples: pwm: depend on boards supporting PWM 2017-12-28 20:24:29 -05:00
blinky samples: remove more build_only tags 2017-12-28 20:24:29 -05:00
button samples: remove more build_only tags 2017-12-28 20:24:29 -05:00
disco samples: remove more build_only tags 2017-12-28 20:24:29 -05:00
fade_led samples: pwm: depend on boards supporting PWM 2017-12-28 20:24:29 -05:00
rgb_led samples: pwm: depend on boards supporting PWM 2017-12-28 20:24:29 -05:00
servo_motor samples: pwm: depend on boards supporting PWM 2017-12-28 20:24:29 -05:00
threads samples: threads: Rewrite misleading sample 2018-01-08 14:25:11 -05:00
basic.rst doc: add labels to basic sample docs 2017-04-04 19:51:47 +00:00