Project

General

Profile

« Previous | Next » 

Revision 135

Added by markw over 11 years ago

Retry SD init if it fails

View differences:

mmc2.c
{
BYTE rc;
UINT bc;
int res = 0;
//printf("mr:%x",sector);
......
do spiTransferFF(); while (--bc); // checksum
}
}
else
{
res = 1;
}
DESELECT();
spiTransferFF();
return 0;
return res;
}

Also available in: Unified diff