ATSAM3X8C读SD卡卡在MCI_IsTxComplete问题求教
static unsigned char SendCommand(SdCard *pSd){
...
....
error = MCI_SendCommand((Mci *)pSdDriver, (MciCmd *)pCommand);
if (error) {
TRACE_ERROR("MCI SendCommand: Failed to send command (%d)\n\r", error);
return SD_ERROR_DRIVER;
}
// Wait for command to complete (if no callback defined)
if (pCommand->callback == 0) {
while (!MCI_IsTxComplete((MciCmd *)pCommand)); <----------------卡在这里,不熟这块芯片,有没有大神知道什么原因? 珍惜生命,远离ATMEL。。。
页:
[1]