summaryrefslogtreecommitdiff
path: root/nuttx/include/debug.h
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-05-19 15:12:28 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-05-19 15:12:28 -0600
commitb97a5893e75583cc0d2afeb5c3bcf1f52331a55d (patch)
tree607094cfdf7856d0e0c01f6b762d5bbf1b2df28e /nuttx/include/debug.h
parent13cbdd000fffdd62699e6af081f06ff847d5a5cc (diff)
downloadpx4-nuttx-b97a5893e75583cc0d2afeb5c3bcf1f52331a55d.tar.gz
px4-nuttx-b97a5893e75583cc0d2afeb5c3bcf1f52331a55d.tar.bz2
px4-nuttx-b97a5893e75583cc0d2afeb5c3bcf1f52331a55d.zip
Add audio/ sub-syste, include/nuttx/audio.h interface, and drivers/audio/vs1053.c driver to NuttX. From Ken Pettit
Diffstat (limited to 'nuttx/include/debug.h')
-rw-r--r--nuttx/include/debug.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/nuttx/include/debug.h b/nuttx/include/debug.h
index 70ae2ee18..97b7ed798 100644
--- a/nuttx/include/debug.h
+++ b/nuttx/include/debug.h
@@ -284,6 +284,18 @@
# define lllvdbg(x...)
#endif
+#ifdef CONFIG_DEBUG_AUDIO
+# define auddbg(format, arg...) dbg(format, ##arg)
+# define audlldbg(format, arg...) lldbg(format, ##arg)
+# define audvdbg(format, arg...) vdbg(format, ##arg)
+# define audllvdbg(format, arg...) llvdbg(format, ##arg)
+#else
+# define auddbg(x...)
+# define audlldbg(x...)
+# define audvdbg(x...)
+# define audllvdbg(x...)
+#endif
+
#else /* CONFIG_CPP_HAVE_VARARGS */
/* Variable argument macros NOT supported */
@@ -453,6 +465,18 @@
# define lllvdbg (void)
#endif
+#ifdef CONFIG_DEBUG_AUDIO
+# define auddbg dbg
+# define audlldbg lldbg
+# define audvdbg vdbg
+# define audllvdbg llvdbg
+#else
+# define auddbg (void)
+# define audlldbg (void)
+# define audvdbg (void)
+# define audllvdbg (void)
+#endif
+
#endif /* CONFIG_CPP_HAVE_VARARGS */
/* Buffer dumping macros do not depend on varargs */
@@ -559,6 +583,14 @@
# define lvdbgdumpbuffer(m,b,n)
#endif
+#ifdef CONFIG_DEBUG_AUDIO
+# define auddbgdumpbuffer(m,b,n) dbgdumpbuffer(m,b,n)
+# define audvdbgdumpbuffer(m,b,n) vdbgdumpbuffer(m,b,n)
+#else
+# define auddbgdumpbuffer(m,b,n)
+# define audvdbgdumpbuffer(m,b,n)
+#endif
+
/****************************************************************************
* Public Type Declarations
****************************************************************************/