diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-11-26 00:18:22 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-11-26 00:18:22 +0000 |
commit | ca1f8ac53e4af7c72a36f294fb720a3f63cac34d (patch) | |
tree | c83293bc87950c579a15a48bef067abff307d040 /nuttx/include/debug.h | |
parent | beaf6630fced304d34f92f630eeb9b181f6e6567 (diff) | |
download | nuttx-ca1f8ac53e4af7c72a36f294fb720a3f63cac34d.tar.gz nuttx-ca1f8ac53e4af7c72a36f294fb720a3f63cac34d.tar.bz2 nuttx-ca1f8ac53e4af7c72a36f294fb720a3f63cac34d.zip |
Numerous fixes for basic STM32 SDIO DMA access
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2279 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/debug.h')
-rw-r--r-- | nuttx/include/debug.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/nuttx/include/debug.h b/nuttx/include/debug.h index c4f8ea346..10b30df42 100644 --- a/nuttx/include/debug.h +++ b/nuttx/include/debug.h @@ -163,6 +163,18 @@ # define sllvdbg(x...) #endif +#ifdef CONFIG_DEBUG_DMA +# define dmadbg(format, arg...) dbg(format, ##arg) +# define dmalldbg(format, arg...) lldbg(format, ##arg) +# define dmavdbg(format, arg...) vdbg(format, ##arg) +# define dmallvdbg(format, arg...) llvdbg(format, ##arg) +#else +# define dmadbg(x...) +# define dmalldbg(x...) +# define dmavdbg(x...) +# define dmallvdbg(x...) +#endif + #ifdef CONFIG_DEBUG_NET # define ndbg(format, arg...) dbg(format, ##arg) # define nlldbg(format, arg...) lldbg(format, ##arg) @@ -284,6 +296,18 @@ # define sllvdbg (void) #endif +#ifdef CONFIG_DEBUG_DMA +# define dmadbg dbg +# define dmalldbg lldbg +# define dmavdbg vdbg +# define dmallvdbg llvdbg +#else +# define dmadbg (void) +# define dmalldbg (void) +# define dmavdbg (void) +# define dmallvdbg (void) +#endif + #ifdef CONFIG_DEBUG_NET # define ndbg dbg # define nlldbg lldbg @@ -390,6 +414,14 @@ # define svdbgdumpbuffer(m,b,n) #endif +#ifdef CONFIG_DEBUG_DMA +# define dmadbgdumpbuffer(m,b,n) dbgdumpbuffer(m,b,n) +# define dmavdbgdumpbuffer(m,b,n) vdbgdumpbuffer(m,b,n) +#else +# define dmadbgdumpbuffer(m,b,n) +# define dmavdbgdumpbuffer(m,b,n) +#endif + #ifdef CONFIG_DEBUG_NET # define ndbgdumpbuffer(m,b,n) dbgdumpbuffer(m,b,n) # define nvdbgdumpbuffer(m,b,n) vdbgdumpbuffer(m,b,n) |