1 /*-----------------------------------------------------------------------
2 / PFF - Low level disk interface modlue include file (C)ChaN, 2010
3 /-----------------------------------------------------------------------*/
10 /* Status of Disk Functions */
14 /* Results of Disk Functions */
16 RES_OK
= 0, /* 0: Function succeeded */
17 RES_ERROR
, /* 1: Disk error */
18 RES_STRERR
, /* 2: Seream error */
19 RES_NOTRDY
, /* 3: Not ready */
20 RES_PARERR
/* 4: Invalid parameter */
24 /*---------------------------------------*/
25 /* Prototypes for disk control functions */
27 DSTATUS
disk_initialize (void);
28 DRESULT
disk_readp (void*, DWORD
, WORD
, WORD
);
30 BOOL
assign_drives (int argc
, char *argv
[]);
32 #define STA_NOINIT 0x01 /* Drive not initialized */
33 #define STA_NODISK 0x02 /* No medium in the drive */