diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-08-15 02:22:02 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-08-15 02:22:02 +1000 |
commit | 75e1e7a5e26491e942fb2b25f518d8e2e3112721 (patch) | |
tree | 970754edda05d38bce1f85492868eca717820b99 /3rdparty/petitfs-0.03/src/diskio.h | |
parent | 9b570be049bf656489bdce823f6f04beb80f053d (diff) | |
download | uGFX-75e1e7a5e26491e942fb2b25f518d8e2e3112721.tar.gz uGFX-75e1e7a5e26491e942fb2b25f518d8e2e3112721.tar.bz2 uGFX-75e1e7a5e26491e942fb2b25f518d8e2e3112721.zip |
Add GFILE support for PetitFS (a very tiny FAT implementation)
Diffstat (limited to '3rdparty/petitfs-0.03/src/diskio.h')
-rw-r--r-- | 3rdparty/petitfs-0.03/src/diskio.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/3rdparty/petitfs-0.03/src/diskio.h b/3rdparty/petitfs-0.03/src/diskio.h new file mode 100644 index 00000000..2599dee3 --- /dev/null +++ b/3rdparty/petitfs-0.03/src/diskio.h @@ -0,0 +1,42 @@ +/*----------------------------------------------------------------------- +/ PFF - Low level disk interface modlue include file (C)ChaN, 2014 +/-----------------------------------------------------------------------*/ + +#ifndef _DISKIO_DEFINED +#define _DISKIO_DEFINED + +#ifdef __cplusplus +extern "C" { +#endif + +#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 */ + RES_NOTRDY, /* 2: Not ready */ + RES_PARERR /* 3: Invalid parameter */ +} DRESULT; + + +/*---------------------------------------*/ +/* Prototypes for disk control functions */ + +DSTATUS disk_initialize (void); +DRESULT disk_readp (BYTE* buff, DWORD sector, UINT offser, UINT count); +DRESULT disk_writep (const BYTE* buff, DWORD sc); + +#define STA_NOINIT 0x01 /* Drive not initialized */ +#define STA_NODISK 0x02 /* No medium in the drive */ + +#ifdef __cplusplus +} +#endif + +#endif /* _DISKIO_DEFINED */ |