Skip to content
Snippets Groups Projects
Commit f9b9bf6e authored by Gregory Nutt's avatar Gregory Nutt
Browse files

STM32 SDIO driver: Add supported for data block end (DBCKEND) interrupt. From Chia Cheng Tsao

parent 7536b465
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,7 @@ extern "C" {
*
************************************************************************************/
EXTERN void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume);
void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume);
#undef EXTERN
#if defined(__cplusplus)
......
/****************************************************************************
* 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. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment