From ed963588bd81c804a0717b03c5b21f464ad5cd97 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 22 Jan 2019 08:56:56 -0600 Subject: [PATCH] apps/system/cfgdata: Make builtin task stack size and priority configurable. Set default to 2048 (from 1024) per recommendation of Ken Pettit. --- system/cfgdata/Kconfig | 13 +++++++++++++ system/cfgdata/Makefile | 7 +++++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/system/cfgdata/Kconfig b/system/cfgdata/Kconfig index abe130c7b..d2f5b9898 100644 --- a/system/cfgdata/Kconfig +++ b/system/cfgdata/Kconfig @@ -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 diff --git a/system/cfgdata/Makefile b/system/cfgdata/Makefile index 4cb717398..735b02e59 100644 --- a/system/cfgdata/Makefile +++ b/system/cfgdata/Makefile @@ -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