mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
Need a cancel method to stop DMA
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2280 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -444,6 +444,25 @@
|
||||
|
||||
#define SDIO_SENDSETUP(dev,buffer,nbytes) ((dev)->sendsetup(dev,buffer,nbytes))
|
||||
|
||||
/****************************************************************************
|
||||
* Name: SDIO_CANCEL
|
||||
*
|
||||
* Description:
|
||||
* Cancel the data transfer setup of SDIO_RECVSETUP, SDIO_SENDSETUP,
|
||||
* SDIO_DMARECVSETUP or SDIO_DMASENDSETUP. This must be called to cancel
|
||||
* the data transfer setup if, for some reason, you cannot perform the
|
||||
* transfer.
|
||||
*
|
||||
* Input Parameters:
|
||||
* dev - An instance of the SDIO device interface
|
||||
*
|
||||
* Returned Value:
|
||||
* OK is success; a negated errno on failure
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#define SDIO_CANCEL(dev) ((dev)->cancel(dev))
|
||||
|
||||
/****************************************************************************
|
||||
* Name: SDIO_WAITRESPONSE
|
||||
*
|
||||
@@ -708,6 +727,7 @@ struct sdio_dev_s
|
||||
size_t nbytes);
|
||||
int (*sendsetup)(FAR struct sdio_dev_s *dev, FAR const ubyte *buffer,
|
||||
size_t nbytes);
|
||||
int (*cancel)(FAR struct sdio_dev_s *dev);
|
||||
|
||||
int (*waitresponse)(FAR struct sdio_dev_s *dev, uint32 cmd);
|
||||
int (*recvR1)(FAR struct sdio_dev_s *dev, uint32 cmd, uint32 *R1);
|
||||
|
||||
Reference in New Issue
Block a user