apps/examples/hello: Can now select task priority and stacksize

This commit is contained in:
Gregory Nutt 2016-01-06 07:47:08 -06:00
parent cb6a914d08
commit 96ee336278
2 changed files with 13 additions and 2 deletions

View File

@ -19,4 +19,12 @@ config EXAMPLES_HELLO_PROGNAME
This is the name of the program that will be use when the NSH ELF
program is installed.
config EXAMPLES_HELLO_PRIORITY
int "Hello task priority"
default 100
config EXAMPLES_HELLO_STACKSIZE
int "Hello stack size"
default 2048
endif

View File

@ -37,9 +37,12 @@
# Hello, World! built-in application info
CONFIG_EXAMPLES_HELLO_PRIORITY ?= SCHED_PRIORITY_DEFAULT
CONFIG_EXAMPLES_HELLO_STACKSIZE ?= 2048
APPNAME = hello
PRIORITY = SCHED_PRIORITY_DEFAULT
STACKSIZE = 2048
PRIORITY = $(CONFIG_EXAMPLES_HELLO_PRIORITY)
STACKSIZE = $(CONFIG_EXAMPLES_HELLO_STACKSIZE)
# Hello, World! Example