This website requires JavaScript.
Explore
Help
Sign In
OrgZephyr
/
zephyr
mirror of
https://github.com/zephyrproject-rtos/zephyr.git
Watch
1
Star
0
Fork
You've already forked zephyr
0
Code
Issues
Releases
Wiki
Activity
02aa980042
zephyr
/
samples
/
basic
/
threads
/
prj.conf
4 lines
62 B
Plaintext
Raw
Normal View
History
Unescape
Escape
samples: Basic Thread Demo A basic demo to showcase multi-threading using K_THREAD_DEFINE Signed-off-by: Sahaj Sarup <sahaj.sarup@linaro.org>
2017-10-27 02:05:38 +08:00
CONFIG_PRINTK=y
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>
2017-12-21 22:03:27 +08:00
CONFIG_HEAP_MEM_POOL_SIZE=256
CONFIG_ASSERT=y