summaryrefslogtreecommitdiff
path: root/apps/examples/ostest/ostest.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-05-28 21:42:18 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-05-28 21:42:18 +0000
commit94c7babe23d72a1e379da0cf0aab32fcf9fadcf3 (patch)
treeeedc930a4ed4a1108c87cae26d3fcda7e411dd1f /apps/examples/ostest/ostest.h
parent405c2b328ff4cd571bb9e464541b4d297b18f93d (diff)
downloadnuttx-94c7babe23d72a1e379da0cf0aab32fcf9fadcf3.tar.gz
nuttx-94c7babe23d72a1e379da0cf0aab32fcf9fadcf3.tar.bz2
nuttx-94c7babe23d72a1e379da0cf0aab32fcf9fadcf3.zip
atexit() functions now called when task killed by task delete; For MCUs with <= 64Kb of SRAM, CONFIG_MM_SMALL can be defined to reduce the memory allocation overhead
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3648 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/ostest/ostest.h')
-rw-r--r--apps/examples/ostest/ostest.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/apps/examples/ostest/ostest.h b/apps/examples/ostest/ostest.h
index 1cd705898..99290828e 100644
--- a/apps/examples/ostest/ostest.h
+++ b/apps/examples/ostest/ostest.h
@@ -1,7 +1,7 @@
/****************************************************************************
* examples/ostest/ostest.h
*
- * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007-2009, 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -79,6 +79,18 @@
# define dump_nfreeholders(s)
#endif
+/* If CONFIG_STDIO_LINEBUFFER is defined, the STDIO buffer will be flushed
+ * on each new line. Otherwise, STDIO needs to be explicitly flushed to
+ * see the output in context.
+ */
+
+#if CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_NFILE_STREAMS > 0 && \
+ CONFIG_STDIO_BUFFER_SIZE > 0 && !defined(CONFIG_STDIO_LINEBUFFER)
+# define FFLUSH() fflush(stdout)
+#else
+# define FFLUSH()
+#endif
+
/****************************************************************************
* Public Types
****************************************************************************/