apps/system/cfgdata: Make builtin task stack size and priority configurable. Set default to 2048 (from 1024) per recommendation of Ken Pettit.

This commit is contained in:
Gregory Nutt 2019-01-22 08:56:56 -06:00
parent 1a82551036
commit ed963588bd
2 changed files with 18 additions and 2 deletions

View File

@ -11,5 +11,18 @@ config SYSTEM_CFGDATA
Enable support for the CFGDATA tool.
if SYSTEM_CFGDATA
config SYSTEM_CFGDATA_STACKSIZE
int "Builtin task stack size"
default 2048
---help---
Size of the task to configure when started cfgdata from NSH
config SYSTEM_CFGDATA_PRIORITY
int "Builtin task priority"
default 100
---help---
Priority of the task to configure when started cfgdata from NSH
endif

View File

@ -43,9 +43,12 @@
# config Application
# TODO: appname can be automatically extracted from the directory name
CONFIG_SYSTEM_CFGDATA_STACKSIZE ?= 2048
CONFIG_SYSTEM_CFGDATA_PRIORITY ?= SCHED_PRIORITY_DEFAULT
APPNAME = cfgdata
PRIORITY = SCHED_PRIORITY_DEFAULT
STACKSIZE = 1024
PRIORITY = $(CONFIG_SYSTEM_CFGDATA_PRIORITY)
STACKSIZE = $(CONFIG_SYSTEM_CFGDATA_STACKSIZE)
MAINSRC = cfgdata_main.c