From 608b605f40d0876ae9f97919f96981ebce0ab2e2 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 30 Oct 2013 10:25:30 -0600 Subject: [PATCH] Fine tuning of memory usage in examples/cc3000 from David Sidrane --- ChangeLog.txt | 3 +++ examples/cc3000/Makefile | 2 +- examples/cc3000/cc3000basic.c | 14 +++++++------- examples/cc3000/shell.h | 4 ++-- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index b12b3e8f4..c0a0e7efd 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -712,3 +712,6 @@ * apps/include/platform/configdata.h: Define an interface that can be used to manage platform-specific storage of configuration data (2013-10-30). + * apps/examples/cc3000: Fine tuning of memory usage from David Sidrane + (2013-10-30). + diff --git a/examples/cc3000/Makefile b/examples/cc3000/Makefile index 2c29be4e1..9289fc697 100644 --- a/examples/cc3000/Makefile +++ b/examples/cc3000/Makefile @@ -41,7 +41,7 @@ include $(APPDIR)/Make.defs APPNAME = c3b PRIORITY = SCHED_PRIORITY_DEFAULT -STACKSIZE = 664 +STACKSIZE = 608 APPNAME1 = shell PRIORITY1 = SCHED_PRIORITY_DEFAULT diff --git a/examples/cc3000/cc3000basic.c b/examples/cc3000/cc3000basic.c index d974cc844..1a4d12714 100644 --- a/examples/cc3000/cc3000basic.c +++ b/examples/cc3000/cc3000basic.c @@ -91,15 +91,15 @@ * Mem: 16560 11144 5416 5384 * PID SIZE USED THREAD NAME * 0 0 0 Idle Task - * 1 796 772 init - * 2 660 644 c3b - * 3 332 316 + * 1 876 772 init + * 2 604 588 c3b + * 3 236 220 * - * 8 460 436 + * 8 364 348 * - * 9 292 268 - * 10 492 468 Telnet dd - * 11 960 940 Telnet sd + * 9 260 196 + * 10 380 364 Telnet dd + * 11 860 844 Telnet sd */ #include diff --git a/examples/cc3000/shell.h b/examples/cc3000/shell.h index ded2554b2..c6ad0422c 100644 --- a/examples/cc3000/shell.h +++ b/examples/cc3000/shell.h @@ -59,7 +59,7 @@ #endif #ifndef CONFIG_EXAMPLES_TELNETD_DAEMONSTACKSIZE -# define CONFIG_EXAMPLES_TELNETD_DAEMONSTACKSIZE 492 +# define CONFIG_EXAMPLES_TELNETD_DAEMONSTACKSIZE 384 #endif #ifndef CONFIG_EXAMPLES_TELNETD_CLIENTPRIO @@ -67,7 +67,7 @@ #endif #ifndef CONFIG_EXAMPLES_TELNETD_CLIENTSTACKSIZE -# define CONFIG_EXAMPLES_TELNETD_CLIENTSTACKSIZE 964 +# define CONFIG_EXAMPLES_TELNETD_CLIENTSTACKSIZE 864 #endif #undef CONFIG_EXAMPLE_CC3000_MEM_CHECK