40 DSTATUS disk_initialize (BYTE);
41 DSTATUS disk_status (BYTE);
42 DRESULT disk_read (BYTE, BYTE*, DWORD, BYTE);
44 DRESULT disk_write (BYTE,
const BYTE*, DWORD, BYTE);
46 DRESULT disk_ioctl (BYTE, BYTE,
void*);
48 #define READ_RETRIES 5
53 #define STA_NOINIT 0x01
54 #define STA_NODISK 0x02
55 #define STA_PROTECT 0x04
62 #define GET_SECTOR_COUNT 1
63 #define GET_SECTOR_SIZE 2
64 #define GET_BLOCK_SIZE 3
65 #define CTRL_ERASE_SECTOR 4
73 #define MMC_GET_TYPE 10
74 #define MMC_GET_CSD 11
75 #define MMC_GET_CID 12
76 #define MMC_GET_OCR 13
77 #define MMC_GET_SDSTAT 14
80 #define ATA_GET_REV 20
81 #define ATA_GET_MODEL 21
85 #define NAND_FORMAT 30
94 DSTATUS disk_initialize (BYTE drive);
103 DSTATUS disk_status (BYTE drive);
109 DWORD get_fattime (
void);