1
0
mirror of https://github.com/hsoft/collapseos.git synced 2025-04-11 03:38:15 +10:00

Put the nop in the SD loop back

This commit is contained in:
Clanmaster21 2020-01-07 15:37:43 +00:00 committed by GitHub
parent fca0244c68
commit e2c1b4c8f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,10 +85,11 @@
; *** Code ***
; Wake the SD card up. After power up, a SD card has to receive at least 74
; dummy clocks with CS and DI high. We send (way more than) 80.
; dummy clocks with CS and DI high. We send 80.
sdcWakeUp:
out (SDC_PORT_CSHIGH), a
ld b, 10 ; 10 * 11 == 110
ld b, 10 ; 10 * 8 == 80
nop
ld a, 0xff
.loop:
out (SDC_PORT_SPI), a ;11 cycles