Dependents:   USBMSD_CDC_11U35test

Fork of USBFileSystem by Erik -

Revision:
6:15b73dae124e
Parent:
2:9af05743d551
--- a/FATFileSystem/ChaN/ffconf.h	Tue Jun 03 17:05:13 2014 +0000
+++ b/FATFileSystem/ChaN/ffconf.h	Sun Jan 18 21:31:32 2015 +0000
@@ -129,6 +129,7 @@
 #define _VOLUMES    1
 /* Number of volumes (logical drives) to be used. */
 
+
 #define _MAX_SS     512     /* 512, 1024, 2048 or 4096 */
 /* Maximum sector size to be handled.
 /  Always set 512 for memory card and hard disk but a larger value may be
@@ -186,5 +187,12 @@
 /* To enable file lock control feature, set _FS_LOCK to 1 or greater.
    The value defines how many files can be opened simultaneously. */
 
+#define FLUSH_ON_NEW_CLUSTER    0   /* Sync the file on every new cluster */
+#define FLUSH_ON_NEW_SECTOR     1   /* Sync the file on every new sector */
+/* Only one of these two defines needs to be set to 1. If both are set to 0
+   the file is only sync when closed.
+   Clusters are group of sectors (eg: 8 sectors). Flushing on new cluster means
+   it would be less often than flushing on new sector. Sectors are generally
+   512 Bytes long. */
 
 #endif /* _FFCONFIG */