Skip to content

Commit 92f5cd1

Browse files
overheatnashif
authored andcommitted
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>
1 parent 378cc3d commit 92f5cd1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

samples/basic/threads/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
CONFIG_PRINTK=y
22
CONFIG_HEAP_MEM_POOL_SIZE=256
33
CONFIG_ASSERT=y
4+
CONFIG_GPIO=y

samples/basic/threads/sample.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ tests:
66
test:
77
tags: kernel threads gpio
88
filter: DT_GPIO_LEDS_LED0_GPIO_CONTROLLER and DT_GPIO_LEDS_LED1_GPIO_CONTROLLER
9+
depends_on: gpio

0 commit comments

Comments
 (0)