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:
parent
1a82551036
commit
ed963588bd
@ -11,5 +11,18 @@ config SYSTEM_CFGDATA
|
|||||||
Enable support for the CFGDATA tool.
|
Enable support for the CFGDATA tool.
|
||||||
|
|
||||||
if SYSTEM_CFGDATA
|
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
|
endif
|
||||||
|
|
||||||
|
@ -43,9 +43,12 @@
|
|||||||
# config Application
|
# config Application
|
||||||
# TODO: appname can be automatically extracted from the directory name
|
# TODO: appname can be automatically extracted from the directory name
|
||||||
|
|
||||||
|
CONFIG_SYSTEM_CFGDATA_STACKSIZE ?= 2048
|
||||||
|
CONFIG_SYSTEM_CFGDATA_PRIORITY ?= SCHED_PRIORITY_DEFAULT
|
||||||
|
|
||||||
APPNAME = cfgdata
|
APPNAME = cfgdata
|
||||||
PRIORITY = SCHED_PRIORITY_DEFAULT
|
PRIORITY = $(CONFIG_SYSTEM_CFGDATA_PRIORITY)
|
||||||
STACKSIZE = 1024
|
STACKSIZE = $(CONFIG_SYSTEM_CFGDATA_STACKSIZE)
|
||||||
|
|
||||||
MAINSRC = cfgdata_main.c
|
MAINSRC = cfgdata_main.c
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user