1.Fixed sdmmc cmd retries issue;

This commit is contained in:
weety 2015-06-22 21:28:42 +08:00
parent 41597e8793
commit 28f2fbd4cc
2 changed files with 2 additions and 2 deletions

View File

@ -580,7 +580,7 @@ remove_card:
host->card = RT_NULL; host->card = RT_NULL;
err: err:
rt_kprintf("init SD card failed\n"); rt_kprintf("init MMC card failed\n");
return err; return err;
} }

View File

@ -81,7 +81,7 @@ void mmcsd_send_request(struct rt_mmcsd_host *host, struct rt_mmcsd_req *req)
rt_sem_take(&host->sem_ack, RT_WAITING_FOREVER); rt_sem_take(&host->sem_ack, RT_WAITING_FOREVER);
} while(req->cmd->err && req->cmd->retries); } while(req->cmd->err && (req->cmd->retries > 0));
} }