git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6631 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
gdisirio 2014-01-18 09:16:25 +00:00
parent 4364ccbaff
commit 83ad77612c
1 changed files with 4 additions and 4 deletions

View File

@ -607,16 +607,16 @@ bool sdc_lld_read_aligned(SDCDriver *sdcp, uint32_t startblk,
SDIO_MASK_DATAENDIE; SDIO_MASK_DATAENDIE;
SDIO->DLEN = n * MMCSD_BLOCK_SIZE; SDIO->DLEN = n * MMCSD_BLOCK_SIZE;
/* Talk to card what we want from it.*/
if (sdc_lld_prepare_read(sdcp, startblk, n, resp) == TRUE)
goto error;
/* Transaction starts just after DTEN bit setting.*/ /* Transaction starts just after DTEN bit setting.*/
SDIO->DCTRL = SDIO_DCTRL_DTDIR | SDIO->DCTRL = SDIO_DCTRL_DTDIR |
SDIO_DCTRL_DBLOCKSIZE_3 | SDIO_DCTRL_DBLOCKSIZE_3 |
SDIO_DCTRL_DBLOCKSIZE_0 | SDIO_DCTRL_DBLOCKSIZE_0 |
SDIO_DCTRL_DMAEN | SDIO_DCTRL_DMAEN |
SDIO_DCTRL_DTEN; SDIO_DCTRL_DTEN;
/* Talk to card what we want from it.*/
if (sdc_lld_prepare_read(sdcp, startblk, n, resp) == TRUE)
goto error;
if (sdc_lld_wait_transaction_end(sdcp, n, resp) == TRUE) if (sdc_lld_wait_transaction_end(sdcp, n, resp) == TRUE)
goto error; goto error;