2010-05-08 05:12:14 +02:00
|
|
|
/*-----------------------------------------------------------------------
|
2010-07-29 18:20:45 +02:00
|
|
|
/ PFF - Low level disk interface module include file (C)ChaN, 2010
|
2010-05-08 05:12:14 +02:00
|
|
|
/-----------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
#ifndef _DISKIO
|
|
|
|
|
|
|
|
#include "integer.h"
|
|
|
|
|
|
|
|
|
|
|
|
/* Status of Disk Functions */
|
|
|
|
typedef BYTE DSTATUS;
|
|
|
|
|
|
|
|
|
|
|
|
/* Results of Disk Functions */
|
|
|
|
typedef enum {
|
|
|
|
RES_OK = 0, /* 0: Function succeeded */
|
|
|
|
RES_ERROR, /* 1: Disk error */
|
2011-02-06 16:17:46 +01:00
|
|
|
RES_NOTRDY, /* 2: Not ready */
|
|
|
|
RES_PARERR /* 3: Invalid parameter */
|
2010-05-08 05:12:14 +02:00
|
|
|
} DRESULT;
|
|
|
|
|
|
|
|
|
|
|
|
/*---------------------------------------*/
|
|
|
|
/* Prototypes for disk control functions */
|
|
|
|
|
|
|
|
DSTATUS disk_initialize (void);
|
2011-02-06 16:17:46 +01:00
|
|
|
DRESULT disk_readp (BYTE*, DWORD, WORD, WORD);
|
2010-05-08 05:12:14 +02:00
|
|
|
|
|
|
|
#define STA_NOINIT 0x01 /* Drive not initialized */
|
|
|
|
#define STA_NODISK 0x02 /* No medium in the drive */
|
|
|
|
|
|
|
|
#define _DISKIO
|
|
|
|
#endif
|
2010-10-13 16:05:35 +02:00
|
|
|
|