mmcsd:add STATUS_SEND (CMD13) support

Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
This commit is contained in:
wanggang26 2023-10-23 20:43:04 +08:00 committed by Xiang Xiao
parent 143b265d11
commit 243148241a

View file

@ -3388,6 +3388,15 @@ static int mmcsd_iocmd(FAR struct mmcsd_state_s *priv,
}
break;
#endif
case MMCSD_CMDIDX13: /* Send status commands */
{
ret = mmcsd_get_r1(priv, ic_ptr->response);
if (ret != OK)
{
ferr("ERROR: mmcsd_get_r1 failed: %d\n", ret);
}
}
break;
case MMCSD_CMDIDX56: /* General commands */
{
if (ic_ptr->write_flag)