diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-10-14 07:32:20 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-10-14 07:32:20 -0600 |
commit | b33449923aee0b4320bed6b3f4880fcc75da32ab (patch) | |
tree | 335c2e47dd47c7fa94eeda43fe3460ecec21a88b /apps/system | |
parent | 898cec64c6e8cc2b5503b333a7c191847c8805fc (diff) | |
download | px4-nuttx-b33449923aee0b4320bed6b3f4880fcc75da32ab.tar.gz px4-nuttx-b33449923aee0b4320bed6b3f4880fcc75da32ab.tar.bz2 px4-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
Diffstat (limited to 'apps/system')
-rw-r--r-- | apps/system/sysinfo/Kconfig | 6 | ||||
-rw-r--r-- | apps/system/sysinfo/Makefile | 7 |
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 |