1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-30 23:08:05 +11:00
collapseos/blk/382

14 lines
438 B
Plaintext
Raw Normal View History

2020-04-24 03:55:00 +10:00
( 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! )
;