mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 21:52:48 +00:00
sdmcc.c: Longer delay on SD init (thanks @profi200)
This commit is contained in:
parent
1403dc8ef9
commit
d928591a80
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user