mmcsd_sdio:Release CPU during wait for Write Completion

This commit is contained in:
David Sidrane 2023-02-10 06:13:42 -08:00 committed by Xiang Xiao
parent d570a93945
commit 9d0e712347

View File

@ -1268,6 +1268,10 @@ static int mmcsd_transferready(FAR struct mmcsd_state_s *priv)
goto errorout; goto errorout;
} }
/* Do not hog the CPU */
nxsig_usleep(1000);
/* We are still in the programming state. Calculate the elapsed /* We are still in the programming state. Calculate the elapsed
* time... we can't stay in this loop forever! * time... we can't stay in this loop forever!
*/ */