Documentation improvements - put driver example code into its own section, fix incorr...
[pub/USBasp.git] / Projects / Incomplete / StandaloneProgrammer / Lib / PetiteFATFs / diskio.h
index c5ab064..b1a0985 100644 (file)
@@ -1,36 +1,37 @@
-/*-----------------------------------------------------------------------\r
-/  PFF - Low level disk interface modlue include file    (C)ChaN, 2009\r
-/-----------------------------------------------------------------------*/\r
-\r
-#ifndef _DISKIO\r
-\r
-#include "integer.h"\r
-\r
-\r
-/* Status of Disk Functions */\r
-typedef BYTE   DSTATUS;\r
-\r
-\r
-/* Results of Disk Functions */\r
-typedef enum {\r
-       RES_OK = 0,             /* 0: Function succeeded */\r
-       RES_ERROR,              /* 1: Disk error */\r
-       RES_STRERR,             /* 2: Seream error */\r
-       RES_NOTRDY,             /* 3: Not ready */\r
-       RES_PARERR              /* 4: Invalid parameter */\r
-} DRESULT;\r
-\r
-\r
-/*---------------------------------------*/\r
-/* Prototypes for disk control functions */\r
-\r
-DSTATUS disk_initialize (void);\r
-DRESULT disk_readp (void*, DWORD, WORD, WORD);\r
-\r
-BOOL assign_drives (int argc, char *argv[]);\r
-\r
-#define STA_NOINIT             0x01    /* Drive not initialized */\r
-#define STA_NODISK             0x02    /* No medium in the drive */\r
-\r
-#define _DISKIO\r
-#endif\r
+/*-----------------------------------------------------------------------
+/  PFF - Low level disk interface module include file    (C)ChaN, 2010
+/-----------------------------------------------------------------------*/
+
+#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: Stream 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
+