Line 3: |
Line 3: |
| <source lang="c"> | | <source lang="c"> |
| SD_GetDeviceStatus | | SD_GetDeviceStatus |
− | ios_ioctl( sd_fd, 0x0B, 0, 0, buffer, 4); | + | u32 buffer |
| + | ios_ioctl( sd_fd, 0x0B, 0, 0, &buffer, 4); |
| </source> | | </source> |
| + | buffer contains the status of the SD slot: |
| + | :* 1: SD card is inserted. |
| + | :* 2: No SD card is inserted. |
| + | |
| ===ResetDevice=== | | ===ResetDevice=== |
| <source lang="c"> | | <source lang="c"> |