aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/Incomplete/StandaloneProgrammer/Lib/PetiteFATFs/diskio.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-11-17 10:32:17 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-11-17 10:32:17 +0000
commit9b2011455585885748164ab76dfaae76fffb0ff9 (patch)
tree793afb8d681b07fc84582828735e23e90465d7d7 /Projects/Incomplete/StandaloneProgrammer/Lib/PetiteFATFs/diskio.h
parent79e54580ae0ce192f6c66a11880136eac483fc29 (diff)
downloadlufa-9b2011455585885748164ab76dfaae76fffb0ff9.tar.gz
lufa-9b2011455585885748164ab76dfaae76fffb0ff9.tar.bz2
lufa-9b2011455585885748164ab76dfaae76fffb0ff9.zip
Make RNDISHost demo validate the set Packet Filter to ensure that it is being sent correctly.
Add new (incomplete) StandaloneProgrammer project, using the ELM Petite FAT library to read files stored on the board's dataflash by the host.
Diffstat (limited to 'Projects/Incomplete/StandaloneProgrammer/Lib/PetiteFATFs/diskio.h')
-rw-r--r--Projects/Incomplete/StandaloneProgrammer/Lib/PetiteFATFs/diskio.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/Projects/Incomplete/StandaloneProgrammer/Lib/PetiteFATFs/diskio.h b/Projects/Incomplete/StandaloneProgrammer/Lib/PetiteFATFs/diskio.h
new file mode 100644
index 000000000..c5ab064ba
--- /dev/null
+++ b/Projects/Incomplete/StandaloneProgrammer/Lib/PetiteFATFs/diskio.h
@@ -0,0 +1,36 @@
+/*-----------------------------------------------------------------------
+/ PFF - Low level disk interface modlue include file (C)ChaN, 2009
+/-----------------------------------------------------------------------*/
+
+#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 */
+ RES_STRERR, /* 2: Seream error */
+ RES_NOTRDY, /* 3: Not ready */
+ RES_PARERR /* 4: Invalid parameter */
+} DRESULT;
+
+
+/*---------------------------------------*/
+/* Prototypes for disk control functions */
+
+DSTATUS disk_initialize (void);
+DRESULT disk_readp (void*, DWORD, WORD, WORD);
+
+BOOL assign_drives (int argc, char *argv[]);
+
+#define STA_NOINIT 0x01 /* Drive not initialized */
+#define STA_NODISK 0x02 /* No medium in the drive */
+
+#define _DISKIO
+#endif