mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 03:34:32 +02:00
send bus initialization bits before MMC_GO_IDLE_STATE command to initialize card after poweron
This commit is contained in:
committed by
Anton Maklakov
parent
157749c77b
commit
b772024699
@@ -215,6 +215,8 @@ static sdmmc_hw_cmd_t make_hw_cmd(sdmmc_command_t* cmd)
|
|||||||
res.cmd_index = cmd->opcode;
|
res.cmd_index = cmd->opcode;
|
||||||
if (cmd->opcode == MMC_STOP_TRANSMISSION) {
|
if (cmd->opcode == MMC_STOP_TRANSMISSION) {
|
||||||
res.stop_abort_cmd = 1;
|
res.stop_abort_cmd = 1;
|
||||||
|
} else if (cmd->opcode == MMC_GO_IDLE_STATE) {
|
||||||
|
res.send_init = 1;
|
||||||
} else {
|
} else {
|
||||||
res.wait_complete = 1;
|
res.wait_complete = 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user