summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32/stm32_sdio.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-07-08 09:04:05 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-07-08 09:04:05 -0600
commit7f7c0362bf47c226a0ba266ee5bb7673cbc5de31 (patch)
tree0af5e96b9f9795b88532b8844cbbbaea0a262dff /nuttx/arch/arm/src/stm32/stm32_sdio.c
parent8cf1b3f58d8f4150dc576b626740b9435a9a06b6 (diff)
downloadpx4-nuttx-7f7c0362bf47c226a0ba266ee5bb7673cbc5de31.tar.gz
px4-nuttx-7f7c0362bf47c226a0ba266ee5bb7673cbc5de31.tar.bz2
px4-nuttx-7f7c0362bf47c226a0ba266ee5bb7673cbc5de31.zip
STM32 SDIO driver: Add supported for data block end (DBCKEND) interrupt. From Chia Cheng Tsao
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_sdio.c')
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_sdio.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_sdio.c b/nuttx/arch/arm/src/stm32/stm32_sdio.c
index 800f1fe6b..ba556b496 100644
--- a/nuttx/arch/arm/src/stm32/stm32_sdio.c
+++ b/nuttx/arch/arm/src/stm32/stm32_sdio.c
@@ -1,7 +1,7 @@
/****************************************************************************
* arch/arm/src/stm32/stm32_sdio.c
*
- * Copyright (C) 2009, 2011-2012 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2009, 2011-2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -248,15 +248,16 @@
SDIO_MASK_CMDRENDIE)
#define SDIO_XFRDONE_MASK (0)
-#define SDIO_CMDDONE_ICR (SDIO_ICR_CMDSENTC)
+#define SDIO_CMDDONE_ICR (SDIO_ICR_CMDSENTC|SDIO_ICR_DBCKENDC)
#define SDIO_RESPDONE_ICR (SDIO_ICR_CTIMEOUTC|SDIO_ICR_CCRCFAILC|\
- SDIO_ICR_CMDRENDC)
+ SDIO_ICR_CMDRENDC|SDIO_ICR_DBCKENDC)
#define SDIO_XFRDONE_ICR (SDIO_ICR_DATAENDC|SDIO_ICR_DCRCFAILC|\
SDIO_ICR_DTIMEOUTC|SDIO_ICR_RXOVERRC|\
- SDIO_ICR_TXUNDERRC|SDIO_ICR_STBITERRC)
+ SDIO_ICR_TXUNDERRC|SDIO_ICR_STBITERRC|\
+ SDIO_ICR_DBCKENDC)
#define SDIO_WAITALL_ICR (SDIO_CMDDONE_ICR|SDIO_RESPDONE_ICR|\
- SDIO_XFRDONE_ICR)
+ SDIO_XFRDONE_ICR|SDIO_ICR_DBCKENDC)
/* Let's wait until we have both SDIO transfer complete and DMA complete. */