sdmcc.c: Longer delay on SD init (thanks @profi200)

This commit is contained in:
d0k3 2019-06-17 01:45:47 +02:00
parent 1403dc8ef9
commit d928591a80
2 changed files with 3 additions and 4 deletions

View File

@ -469,7 +469,7 @@ int SD_Init()
// We need to send at least 74 clock pulses.
set_target(&handleSD);
wait(0x1980); // ~75-76 clocks
wait(2 * 128 * 74);
sdmmc_send_command(&handleSD,0,0);
sdmmc_send_command(&handleSD,0x10408,0x1AA);

View File

@ -5,7 +5,6 @@
.global wait
.type wait, %function
wait:
subs r0, r0, #2
nop
bgt wait
subs r0, r0, #4
bcs wait
bx lr