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
0dd83b8c2e
zephyr
/
samples
/
basic
/
threads
/
prj.conf
5 lines
76 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
samples: threads: Fix ASSERTION FAIL without gpio driver Some boards' configuration does not enable GPIO by default, like nrf52_pca10056, it causes ASSERTION FAIL when running this application. This fix is to enable GPIO by default for the basic threads sample, like basic blinky sample does. Signed-off-by: Aaron Tsui <aaron.tsui@outlook.com>
2019-02-22 14:24:59 +08:00
CONFIG_GPIO=y