/* Start a new MMC command for a host, and wait for the command to complete. Return any error that occurred while the command was executing. Do not attempt to parse the response.  */
int32_t mmc_wait_for_cmd(struct mmc_host *host, struct mmc_command *cmd)
/* Start a new MMC command for a host, and wait for the command to complete. Return any error that occurred while the command was executing. Do not attempt to parse the response.  */
int32_t mmc_wait_for_cmd(struct mmc_host *host, struct mmc_command *cmd)
{
    struct mmc_request mrq = {0};
    SDC_Memset(cmd->resp, 0, sizeof(cmd->resp));
    mrq.cmd = cmd;
    return mmc_wait_for_req(host, &mrq);
}