Line 68:
Line 68:
buffer contains the status of the SD slot
buffer contains the status of the SD slot
−
Upper 16 bits:
+
:* Bit 0: SD card is inserted.
−
:* 0: SD is not initialized (or busy)
+
:* Bit 2: Write protect switch is down
−
:* 1: SD is initialized
+
:* Bit 16: SD is initialized
−
Lower 16 bits:
+
:* Bit 20: This is an SDHC card
−
:* 1: SD card is inserted.
−
:* 2: No SD card is inserted (sdio interrupt)
=== ResetDevice ===
=== ResetDevice ===