diff --git a/examples/hello/Kconfig b/examples/hello/Kconfig index 0d49aa7d5..cd74a901d 100644 --- a/examples/hello/Kconfig +++ b/examples/hello/Kconfig @@ -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 diff --git a/examples/hello/Makefile b/examples/hello/Makefile index 986b68a8e..3133b33fb 100644 --- a/examples/hello/Makefile +++ b/examples/hello/Makefile @@ -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