summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-10-26 17:40:59 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-10-26 17:40:59 -0600
commitd75626d50669777015934fac51fc192f547cbc55 (patch)
tree653faf88d446b6761f838b0281c7d1851a98b681
parentad6c10ef4ea95cb647533c79da9ebb453d834dd3 (diff)
downloadnuttx-d75626d50669777015934fac51fc192f547cbc55.tar.gz
nuttx-d75626d50669777015934fac51fc192f547cbc55.tar.bz2
nuttx-d75626d50669777015934fac51fc192f547cbc55.zip
apps/examples/cc3000 update from David Sidrane
-rw-r--r--apps/examples/cc3000/cc3000basic.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/examples/cc3000/cc3000basic.c b/apps/examples/cc3000/cc3000basic.c
index e72dbecb6..6bce7e03b 100644
--- a/apps/examples/cc3000/cc3000basic.c
+++ b/apps/examples/cc3000/cc3000basic.c
@@ -144,9 +144,7 @@ static struct mallinfo mmprevious;
* Private Functions
****************************************************************************/
-#ifndef CONFIG_EXAMPLE_CC3000_MEM_CHECK
-# define stkmon_disp()
-#else
+#ifdef CONFIG_EXAMPLE_CC3000_MEM_CHECK
static void show_memory_usage(struct mallinfo *mmbefore,
struct mallinfo *mmafter)
{
@@ -181,6 +179,7 @@ static void _stkmon_disp(FAR struct tcb_s *tcb, FAR void *arg)
tcb->pid, tcb->adj_stack_size, up_check_tcbstack(tcb));
#endif
}
+#endif
static bool wait(long timeoutMs, volatile unsigned long *what,
volatile unsigned long is)
@@ -228,6 +227,9 @@ static bool wait_on(long timeoutMs, volatile unsigned long *what,
* Public Functions
****************************************************************************/
+#ifndef CONFIG_EXAMPLE_CC3000_MEM_CHECK
+# define stkmon_disp()
+#else
void stkmon_disp(void)
{
#if CONFIG_TASK_NAME_SIZE > 0