summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-10-14 07:32:20 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-10-14 07:32:20 -0600
commitb33449923aee0b4320bed6b3f4880fcc75da32ab (patch)
tree335c2e47dd47c7fa94eeda43fe3460ecec21a88b
parent898cec64c6e8cc2b5503b333a7c191847c8805fc (diff)
downloadnuttx-b33449923aee0b4320bed6b3f4880fcc75da32ab.tar.gz
nuttx-b33449923aee0b4320bed6b3f4880fcc75da32ab.tar.bz2
nuttx-b33449923aee0b4320bed6b3f4880fcc75da32ab.zip
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
-rw-r--r--apps/system/sysinfo/Kconfig6
-rw-r--r--apps/system/sysinfo/Makefile7
2 files changed, 10 insertions, 3 deletions
diff --git a/apps/system/sysinfo/Kconfig b/apps/system/sysinfo/Kconfig
index 1f106dc8a..3d9bc56de 100644
--- a/apps/system/sysinfo/Kconfig
+++ b/apps/system/sysinfo/Kconfig
@@ -10,4 +10,10 @@ config SYSTEM_SYSINFO
Enable support for the NSH sysinfo command.
if SYSTEM_SYSINFO
+
+config SYSTEM_SYSINFO_STACKSIZE
+ int "NSHS sysinfo stack size"
+ default 1024
+
endif
+
diff --git a/apps/system/sysinfo/Makefile b/apps/system/sysinfo/Makefile
index eb788b01a..bbac0415b 100644
--- a/apps/system/sysinfo/Makefile
+++ b/apps/system/sysinfo/Makefile
@@ -46,12 +46,13 @@ ifeq ($(WINTOOL),y)
INCDIROPT = -w
endif
-# Hello Application
-# TODO: appname can be automatically extracted from the directory name
+# NSH sysinfo command
+
+CONFIG_SYSTEM_SYSINFO_STACKSIZE ?= 1024
APPNAME = sysinfo
PRIORITY = SCHED_PRIORITY_DEFAULT
-STACKSIZE = 768
+STACKSIZE = $(CONFIG_SYSTEM_SYSINFO_STACKSIZE)
ASRCS =
CSRCS = sysinfo.c