Write now working.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13415 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
54f7db045f
commit
16946c0851
|
@ -746,11 +746,7 @@ bool sdc_lld_write_aligned(SDCDriver *sdcp, uint32_t startblk,
|
|||
SDMMC_MASK_DATAENDIE;
|
||||
sdcp->sdmmc->DLEN = blocks * MMCSD_BLOCK_SIZE;
|
||||
|
||||
/* Talk to card what we want from it.*/
|
||||
if (sdc_lld_prepare_write(sdcp, startblk, blocks, resp) == true)
|
||||
goto error;
|
||||
|
||||
/* Transaction starts just after DTEN bit setting.*/
|
||||
/* Transfer modes.*/
|
||||
sdcp->sdmmc->DCTRL = SDMMC_DCTRL_DBLOCKSIZE_3 |
|
||||
SDMMC_DCTRL_DBLOCKSIZE_0;
|
||||
|
||||
|
@ -758,6 +754,9 @@ bool sdc_lld_write_aligned(SDCDriver *sdcp, uint32_t startblk,
|
|||
sdcp->sdmmc->IDMABASE0 = (uint32_t)buf;
|
||||
sdcp->sdmmc->IDMACTRL = SDMMC_IDMA_IDMAEN;
|
||||
|
||||
if (sdc_lld_prepare_write(sdcp, startblk, blocks, resp) == true)
|
||||
goto error;
|
||||
|
||||
if (sdc_lld_wait_transaction_end(sdcp, blocks, resp) == true)
|
||||
goto error;
|
||||
|
||||
|
|
Loading…
Reference in New Issue