apps/examples/cc3000: Updated by David Sidrane

This commit is contained in:
Gregory Nutt 2013-10-27 18:52:21 -06:00
parent 52464a4412
commit 3ff45e664d
3 changed files with 28 additions and 5 deletions

View File

@ -41,7 +41,7 @@ include $(APPDIR)/Make.defs
APPNAME = c3b
PRIORITY = SCHED_PRIORITY_DEFAULT
STACKSIZE = 660
STACKSIZE = 664
APPNAME1 = shell
PRIORITY1 = SCHED_PRIORITY_DEFAULT

View File

@ -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 @@ void ShowInformation(void);
#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 @@ void Initialize(void)
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)

View File

@ -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