]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - fatfs/src/ff.h
Remove memory test and bank manager.
[z180-stamp.git] / fatfs / src / ff.h
index 98949216c62db53b949708b9b3813df3da927ac1..5eaad5fef6dd83a5dfb7ae140bc946ec72c893ac 100644 (file)
@@ -1,5 +1,5 @@
 /*---------------------------------------------------------------------------/\r
-/  FatFs - FAT file system module include file  R0.10b    (C)ChaN, 2014\r
+/  FatFs - FAT file system module include file  R0.10c    (C)ChaN, 2014\r
 /----------------------------------------------------------------------------/\r
 / FatFs module is a generic FAT file system module for small embedded systems.\r
 / This is a free software that opened for education, research and commercial\r
@@ -15,7 +15,7 @@
 /----------------------------------------------------------------------------*/\r
 \r
 #ifndef _FATFS\r
-#define _FATFS 8051    /* Revision ID */\r
+#define _FATFS 80376   /* Revision ID */\r
 \r
 #ifdef __cplusplus\r
 extern "C" {\r
@@ -23,7 +23,6 @@ extern "C" {
 \r
 #include "integer.h"   /* Basic integer types */\r
 #include "ffconf.h"            /* FatFs configuration options */\r
-\r
 #if _FATFS != _FFCONF\r
 #error Wrong configuration file (ffconf.h).\r
 #endif\r
@@ -236,7 +235,7 @@ int f_puts (const TCHAR* str, FIL* cp);                                                             /* Put a string to the file */
 int f_printf (FIL* fp, const TCHAR* str, ...);                                         /* Put a formatted string to the file */\r
 TCHAR* f_gets (TCHAR* buff, int len, FIL* fp);                                         /* Get a string from the file */\r
 \r
-#define f_eof(fp) (((fp)->fptr == (fp)->fsize) ? 1 : 0)\r
+#define f_eof(fp) ((int)((fp)->fptr == (fp)->fsize))\r
 #define f_error(fp) ((fp)->err)\r
 #define f_tell(fp) ((fp)->fptr)\r
 #define f_size(fp) ((fp)->fsize)\r
@@ -252,7 +251,7 @@ TCHAR* f_gets (TCHAR* buff, int len, FIL* fp);                                              /* Get a string from the fil
 /* Additional user defined functions                            */\r
 \r
 /* RTC function */\r
-#if !_FS_READONLY\r
+#if !_FS_READONLY && !_FS_NORTC\r
 DWORD get_fattime (void);\r
 #endif\r
 \r