apps/examples/cc3000: Updated by David Sidrane
diff --git a/examples/cc3000/Makefile b/examples/cc3000/Makefile
index 37910b8..2c29be4 100644
--- a/examples/cc3000/Makefile
+++ b/examples/cc3000/Makefile
@@ -41,7 +41,7 @@
 
 APPNAME		= c3b
 PRIORITY	= SCHED_PRIORITY_DEFAULT
-STACKSIZE	= 660
+STACKSIZE	= 664
 
 APPNAME1	= shell
 PRIORITY1	= SCHED_PRIORITY_DEFAULT
diff --git a/examples/cc3000/cc3000basic.c b/examples/cc3000/cc3000basic.c
index 6bce7e0..3316b92 100644
--- a/examples/cc3000/cc3000basic.c
+++ b/examples/cc3000/cc3000basic.c
@@ -79,14 +79,29 @@
  *                              |
  *                              +---> CC3000 pin
  *
- *
  ****************************************************************************/
 
 /****************************************************************************
  * Included Files
  ****************************************************************************/
+/*
+ * Memory Analyses
+ *              total       used       free    largest
+ * Mem:         16560      11144       5416       5384
+ * PID   SIZE   USED   THREAD NAME
+ *     0      0      0 Idle Ta
+ *     1    796    772 init
+ *     2    660    644 c3b
+ *     3    332    316 <pthread0
+ *
+ *     8    460    436 <pthread0
+ *
+ *     9    292    268 <pthread
+ *    10    492    468 Telnet dd
+ *    11    960    940 Telnet sd
+ */
 
-#include <nuttx/config.h>
+ #include <nuttx/config.h>
 
 #include "board.h"
 #include <stdio.h>
@@ -129,6 +144,11 @@
 #define US_PER_MS  1000
 #define US_PER_SEC 1000000
 
+/* Define to help debug stack size issues */
+
+#undef CONFIG_EXAMPLE_CC3000_MEM_CHECK
+
+
 /****************************************************************************
  * Private Data
  ****************************************************************************/
@@ -392,6 +412,9 @@
 
   printf("Initializing CC3000...\n");
   CC3000_Init();
+#ifdef CONFIG_EXAMPLE_CC3000_MEM_CHECK
+  stkmon_disp();
+#endif
   printf("  CC3000 init complete.\n");
 
   if (nvmem_read_sp_version(fancyBuffer) == 0)
diff --git a/examples/cc3000/shell.h b/examples/cc3000/shell.h
index c25da9c..ded2554 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 580
+#  define CONFIG_EXAMPLES_TELNETD_DAEMONSTACKSIZE 492
 #endif
 
 #ifndef CONFIG_EXAMPLES_TELNETD_CLIENTPRIO
@@ -67,7 +67,7 @@
 #endif
 
 #ifndef CONFIG_EXAMPLES_TELNETD_CLIENTSTACKSIZE
-#  define CONFIG_EXAMPLES_TELNETD_CLIENTSTACKSIZE 990
+#  define CONFIG_EXAMPLES_TELNETD_CLIENTSTACKSIZE 964
 #endif
 
 #undef CONFIG_EXAMPLE_CC3000_MEM_CHECK