mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 21:08:09 +11:00
14 lines
438 B
Plaintext
14 lines
438 B
Plaintext
|
( Now we need to repeatedly run CMD55+CMD41 (0x40000000)
|
||
|
until the card goes out of idle mode, that is, when it stops
|
||
|
sending us 0x01 response and send us 0x00 instead. Any other
|
||
|
response means that initialization failed. )
|
||
|
BEGIN
|
||
|
0x77 0 0 SDCMDR1 ( CMD55 )
|
||
|
0x01 = NOT IF _err THEN
|
||
|
0x69 0x4000 0x0000 SDCMDR1 ( CMD41 )
|
||
|
DUP 0x01 > IF _err THEN
|
||
|
NOT UNTIL
|
||
|
( Out of idle mode! Success! )
|
||
|
;
|
||
|
|