1
0
mirror of git://projects.qi-hardware.com/antorcha.git synced 2024-11-22 01:51:55 +02:00

tornado/fw/mmc.c: call mmc_recv for low-level I/O, not mmc_read

This commit is contained in:
Werner Almesberger 2012-12-05 10:59:54 -03:00
parent d5a4ffe139
commit 9bf1f83597

View File

@ -70,7 +70,7 @@ static uint8_t mmc_r1(void)
{
uint8_t v, tries = 0xff;
do v = mmc_read();
do v = mmc_recv();
while ((v & 0x80) && --tries);
return v;
}
@ -81,7 +81,7 @@ static void mmc_wait(void)
uint8_t v, tries = 0xff;
do {
v = mmc_read();
v = mmc_recv();
if (v == MMC_START_SINGLE_BLOCK)
return;
}