mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
sd-as3525v2.c Use SD_DESELECT_CARD instead of SD_SELECT_CARD to make the code easier to understand. There is no functional difference.
Add comment to explain why we need to do this. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25281 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
17f5637918
commit
6357c5a085
1 changed files with 3 additions and 2 deletions
|
|
@ -836,8 +836,9 @@ static int sd_transfer_sectors(IF_MD2(int drive,) unsigned long start,
|
|||
dma_release();
|
||||
|
||||
#ifdef HAVE_MULTIDRIVE
|
||||
/* CMD7 w/rca =0 : deselect card to put it in STBY state */
|
||||
if(!send_cmd(drive, SD_SELECT_CARD, 0, MCI_NO_RESP, NULL))
|
||||
/* CMD lines are separate, not common, so we need to actively deselect */
|
||||
/* CMD7 w/rca =0 : deselects card & puts it in STBY state */
|
||||
if(!send_cmd(drive, SD_DESELECT_CARD, 0, MCI_NO_RESP, NULL))
|
||||
return -6;
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue