summaryrefslogtreecommitdiffstats
path: root/nuttx/include/debug.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-02-12 23:54:26 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-02-12 23:54:26 +0000
commit8c55f3bfa80ffaddfde8fc03a2dffa3b128eaaa5 (patch)
tree6e9e40c95947255b743c4a08926a407360d2a19c /nuttx/include/debug.h
parent7a6baccc4206879db63ba714084ec9331cbcb6f5 (diff)
Add interface to enabled/disable debug output
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4386 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/include/debug.h')
-rw-r--r--nuttx/include/debug.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/nuttx/include/debug.h b/nuttx/include/debug.h
index 5cfe1e601c..c8666ff572 100644
--- a/nuttx/include/debug.h
+++ b/nuttx/include/debug.h
@@ -596,6 +596,12 @@ EXTERN int lib_lowprintf(FAR const char *format, ...);
EXTERN void lib_dumpbuffer(FAR const char *msg, FAR const uint8_t *buffer,
unsigned int buflen);
+/* Enable or disable debug output */
+
+#ifdef CONFIG_DEBUG_ENABLE
+EXTERN void dbg_enable(bool enable);
+#endif
+
/* If the cross-compiler's pre-processor does not support variable
* length arguments, then these additional APIs will be built.
*/