mirror of
git://projects.qi-hardware.com/antorcha.git
synced 2024-11-22 08:45:55 +02:00
tornado/fw/mmc.c: call mmc_recv for low-level I/O, not mmc_read
This commit is contained in:
parent
d5a4ffe139
commit
9bf1f83597
@ -70,7 +70,7 @@ static uint8_t mmc_r1(void)
|
|||||||
{
|
{
|
||||||
uint8_t v, tries = 0xff;
|
uint8_t v, tries = 0xff;
|
||||||
|
|
||||||
do v = mmc_read();
|
do v = mmc_recv();
|
||||||
while ((v & 0x80) && --tries);
|
while ((v & 0x80) && --tries);
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
@ -81,7 +81,7 @@ static void mmc_wait(void)
|
|||||||
uint8_t v, tries = 0xff;
|
uint8_t v, tries = 0xff;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
v = mmc_read();
|
v = mmc_recv();
|
||||||
if (v == MMC_START_SINGLE_BLOCK)
|
if (v == MMC_START_SINGLE_BLOCK)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user