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:
parent
b9a3a5afc7
commit
b160409667
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user