apps/examples/hello: Can now select task priority and stacksize
This commit is contained in:
parent
cb6a914d08
commit
96ee336278
@ -19,4 +19,12 @@ config EXAMPLES_HELLO_PROGNAME
|
|||||||
This is the name of the program that will be use when the NSH ELF
|
This is the name of the program that will be use when the NSH ELF
|
||||||
program is installed.
|
program is installed.
|
||||||
|
|
||||||
|
config EXAMPLES_HELLO_PRIORITY
|
||||||
|
int "Hello task priority"
|
||||||
|
default 100
|
||||||
|
|
||||||
|
config EXAMPLES_HELLO_STACKSIZE
|
||||||
|
int "Hello stack size"
|
||||||
|
default 2048
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
@ -37,9 +37,12 @@
|
|||||||
|
|
||||||
# Hello, World! built-in application info
|
# Hello, World! built-in application info
|
||||||
|
|
||||||
|
CONFIG_EXAMPLES_HELLO_PRIORITY ?= SCHED_PRIORITY_DEFAULT
|
||||||
|
CONFIG_EXAMPLES_HELLO_STACKSIZE ?= 2048
|
||||||
|
|
||||||
APPNAME = hello
|
APPNAME = hello
|
||||||
PRIORITY = SCHED_PRIORITY_DEFAULT
|
PRIORITY = $(CONFIG_EXAMPLES_HELLO_PRIORITY)
|
||||||
STACKSIZE = 2048
|
STACKSIZE = $(CONFIG_EXAMPLES_HELLO_STACKSIZE)
|
||||||
|
|
||||||
# Hello, World! Example
|
# Hello, World! Example
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user