summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-11-28 15:05:21 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-11-28 15:05:21 +0000
commitd8777a153c40f29176ac973400982a2d384ecd87 (patch)
tree02436349cc89f998ec711cb1ddaecade1d80e24f
parent3058ac6517d5ebc53be892fc3327747646bec2a2 (diff)
downloadnuttx-d8777a153c40f29176ac973400982a2d384ecd87.tar.gz
nuttx-d8777a153c40f29176ac973400982a2d384ecd87.tar.bz2
nuttx-d8777a153c40f29176ac973400982a2d384ecd87.zip
Fix compile errors with DMA debug off
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2284 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_sdio.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_sdio.c b/nuttx/arch/arm/src/stm32/stm32_sdio.c
index 6eb8ae146..358d8dadf 100644
--- a/nuttx/arch/arm/src/stm32/stm32_sdio.c
+++ b/nuttx/arch/arm/src/stm32/stm32_sdio.c
@@ -232,13 +232,15 @@ static inline uint32 stm32_getpwrctrl(void);
/* DMA Helpers **************************************************************/
+#define stm32_dmasampleinit()
+#define stm32_dmadumpsamples(priv)
+
#ifdef CONFIG_SDIO_DMA
#ifdef CONFIG_DEBUG_DMA
+# undef stm32_dmasampleinit
+# undef stm32_dmadumpsamples
static void stm32_dmasampleinit(void);
static void stm32_dmadumpsamples(struct stm32_dev_s *priv);
-#else
-# define stm32_dmasampleinit()
-# define stm32_dmadumpsamples(priv)
#endif
static void stm32_dmacallback(DMA_HANDLE handle, ubyte isr, void *arg);
#endif