mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 07:28:38 +08:00
mmcsd:add STATUS_SEND (CMD13) support
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
This commit is contained in:
parent
143b265d11
commit
243148241a
1 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue