Loop on sdcard init. This helps if one hasn't plugged in the card

fast enough, or there's other issues that cause the first try to fail.
This commit is contained in:
imp 2007-04-02 20:26:04 +00:00
parent b9a3a5afc7
commit b160409667

View File

@ -148,8 +148,9 @@ main(void)
board_init();
EMAC_Init();
sdcard_init();
EMAC_SetMACAddress(mac);
while (sdcard_init() == 0)
printf("Looking for SD card\n");
dmadat = (void *)(0x20000000 + (16 << 20));
/* Process configuration file */