int32_t Chip_SDMMC_WriteBlocks(LPC_SDC_T *pSDC, SDMMC_CARD_T *pCardInfo, void *buffer, int32_t startBlock, int32_t blockNum) { .... #ifdef SDC_DMA_ENABLE Chip_DMA_Stop(LPC_GPDMA, Event.DmaChannel); #endif if ((blockNum > 1) || (Chip_SDMMC_GetCardState(pSDC, pCardInfo) == SDMMC_RCV_ST)) { /* Send Stop transmission command */ [color=#f00]while([/color]stopTranmission(pSDC, pCardInfo->rca) != SDC_RET_OK[color=#c00])[/color]; } .... |