apps/system/sysinfo: Ken Petit reportst that the sysinfo command's stack size is marginal. Stack size is now configurable with a default of 1024 bytes

This commit is contained in:
Gregory Nutt 2013-10-14 07:32:20 -06:00
parent c084faf159
commit d35b83668c
2 changed files with 10 additions and 3 deletions

View File

@ -10,4 +10,10 @@ config SYSTEM_SYSINFO
Enable support for the NSH sysinfo command. Enable support for the NSH sysinfo command.
if SYSTEM_SYSINFO if SYSTEM_SYSINFO
config SYSTEM_SYSINFO_STACKSIZE
int "NSHS sysinfo stack size"
default 1024
endif endif

View File

@ -46,12 +46,13 @@ ifeq ($(WINTOOL),y)
INCDIROPT = -w INCDIROPT = -w
endif endif
# Hello Application # NSH sysinfo command
# TODO: appname can be automatically extracted from the directory name
CONFIG_SYSTEM_SYSINFO_STACKSIZE ?= 1024
APPNAME = sysinfo APPNAME = sysinfo
PRIORITY = SCHED_PRIORITY_DEFAULT PRIORITY = SCHED_PRIORITY_DEFAULT
STACKSIZE = 768 STACKSIZE = $(CONFIG_SYSTEM_SYSINFO_STACKSIZE)
ASRCS = ASRCS =
CSRCS = sysinfo.c CSRCS = sysinfo.c