temp

Dependencies:   mbed SDFileSystem MS5607 ADXL345_I2C FATFileSystem

Committer:
IKobayashi
Date:
Mon Mar 16 23:37:42 2020 +0900
Revision:
0:c88c3b616c00
copy

Who changed what in which revision?

UserRevisionLine numberNew contents of line
IKobayashi 0:c88c3b616c00 1 /*---------------------------------------------------------------------------/
IKobayashi 0:c88c3b616c00 2 / FatFs - FAT file system module configuration file R0.11a (C)ChaN, 2015
IKobayashi 0:c88c3b616c00 3 /---------------------------------------------------------------------------*/
IKobayashi 0:c88c3b616c00 4
IKobayashi 0:c88c3b616c00 5 #define _FFCONF 64180 /* Revision ID */
IKobayashi 0:c88c3b616c00 6
IKobayashi 0:c88c3b616c00 7 #define FFS_DBG 0
IKobayashi 0:c88c3b616c00 8
IKobayashi 0:c88c3b616c00 9 /*---------------------------------------------------------------------------/
IKobayashi 0:c88c3b616c00 10 / Function Configurations
IKobayashi 0:c88c3b616c00 11 /---------------------------------------------------------------------------*/
IKobayashi 0:c88c3b616c00 12
IKobayashi 0:c88c3b616c00 13 #define _FS_READONLY 0
IKobayashi 0:c88c3b616c00 14 /* This option switches read-only configuration. (0:Read/Write or 1:Read-only)
IKobayashi 0:c88c3b616c00 15 / Read-only configuration removes writing API functions, f_write(), f_sync(),
IKobayashi 0:c88c3b616c00 16 / f_unlink(), f_mkdir(), f_chmod(), f_rename(), f_truncate(), f_getfree()
IKobayashi 0:c88c3b616c00 17 / and optional writing functions as well. */
IKobayashi 0:c88c3b616c00 18
IKobayashi 0:c88c3b616c00 19
IKobayashi 0:c88c3b616c00 20 #define _FS_MINIMIZE 0
IKobayashi 0:c88c3b616c00 21 /* This option defines minimization level to remove some basic API functions.
IKobayashi 0:c88c3b616c00 22 /
IKobayashi 0:c88c3b616c00 23 / 0: All basic functions are enabled.
IKobayashi 0:c88c3b616c00 24 / 1: f_stat(), f_getfree(), f_unlink(), f_mkdir(), f_chmod(), f_utime(),
IKobayashi 0:c88c3b616c00 25 / f_truncate() and f_rename() function are removed.
IKobayashi 0:c88c3b616c00 26 / 2: f_opendir(), f_readdir() and f_closedir() are removed in addition to 1.
IKobayashi 0:c88c3b616c00 27 / 3: f_lseek() function is removed in addition to 2. */
IKobayashi 0:c88c3b616c00 28
IKobayashi 0:c88c3b616c00 29
IKobayashi 0:c88c3b616c00 30 #define _USE_STRFUNC 0
IKobayashi 0:c88c3b616c00 31 /* This option switches string functions, f_gets(), f_putc(), f_puts() and
IKobayashi 0:c88c3b616c00 32 / f_printf().
IKobayashi 0:c88c3b616c00 33 /
IKobayashi 0:c88c3b616c00 34 / 0: Disable string functions.
IKobayashi 0:c88c3b616c00 35 / 1: Enable without LF-CRLF conversion.
IKobayashi 0:c88c3b616c00 36 / 2: Enable with LF-CRLF conversion. */
IKobayashi 0:c88c3b616c00 37
IKobayashi 0:c88c3b616c00 38
IKobayashi 0:c88c3b616c00 39 #define _USE_FIND 0
IKobayashi 0:c88c3b616c00 40 /* This option switches filtered directory read feature and related functions,
IKobayashi 0:c88c3b616c00 41 / f_findfirst() and f_findnext(). (0:Disable or 1:Enable) */
IKobayashi 0:c88c3b616c00 42
IKobayashi 0:c88c3b616c00 43
IKobayashi 0:c88c3b616c00 44 #define _USE_MKFS 1
IKobayashi 0:c88c3b616c00 45 /* This option switches f_mkfs() function. (0:Disable or 1:Enable) */
IKobayashi 0:c88c3b616c00 46
IKobayashi 0:c88c3b616c00 47
IKobayashi 0:c88c3b616c00 48 #define _USE_FASTSEEK 0
IKobayashi 0:c88c3b616c00 49 /* This option switches fast seek feature. (0:Disable or 1:Enable) */
IKobayashi 0:c88c3b616c00 50
IKobayashi 0:c88c3b616c00 51
IKobayashi 0:c88c3b616c00 52 #define _USE_LABEL 0
IKobayashi 0:c88c3b616c00 53 /* This option switches volume label functions, f_getlabel() and f_setlabel().
IKobayashi 0:c88c3b616c00 54 / (0:Disable or 1:Enable) */
IKobayashi 0:c88c3b616c00 55
IKobayashi 0:c88c3b616c00 56
IKobayashi 0:c88c3b616c00 57 #define _USE_FORWARD 0
IKobayashi 0:c88c3b616c00 58 /* This option switches f_forward() function. (0:Disable or 1:Enable)
IKobayashi 0:c88c3b616c00 59 / To enable it, also _FS_TINY need to be set to 1. */
IKobayashi 0:c88c3b616c00 60
IKobayashi 0:c88c3b616c00 61
IKobayashi 0:c88c3b616c00 62 /*---------------------------------------------------------------------------/
IKobayashi 0:c88c3b616c00 63 / Locale and Namespace Configurations
IKobayashi 0:c88c3b616c00 64 /---------------------------------------------------------------------------*/
IKobayashi 0:c88c3b616c00 65
IKobayashi 0:c88c3b616c00 66 #define _CODE_PAGE 850
IKobayashi 0:c88c3b616c00 67 /* This option specifies the OEM code page to be used on the target system.
IKobayashi 0:c88c3b616c00 68 / Incorrect setting of the code page can cause a file open failure.
IKobayashi 0:c88c3b616c00 69 /
IKobayashi 0:c88c3b616c00 70 / 1 - ASCII (No extended character. Non-LFN cfg. only)
IKobayashi 0:c88c3b616c00 71 / 437 - U.S.
IKobayashi 0:c88c3b616c00 72 / 720 - Arabic
IKobayashi 0:c88c3b616c00 73 / 737 - Greek
IKobayashi 0:c88c3b616c00 74 / 771 - KBL
IKobayashi 0:c88c3b616c00 75 / 775 - Baltic
IKobayashi 0:c88c3b616c00 76 / 850 - Latin 1
IKobayashi 0:c88c3b616c00 77 / 852 - Latin 2
IKobayashi 0:c88c3b616c00 78 / 855 - Cyrillic
IKobayashi 0:c88c3b616c00 79 / 857 - Turkish
IKobayashi 0:c88c3b616c00 80 / 860 - Portuguese
IKobayashi 0:c88c3b616c00 81 / 861 - Icelandic
IKobayashi 0:c88c3b616c00 82 / 862 - Hebrew
IKobayashi 0:c88c3b616c00 83 / 863 - Canadian French
IKobayashi 0:c88c3b616c00 84 / 864 - Arabic
IKobayashi 0:c88c3b616c00 85 / 865 - Nordic
IKobayashi 0:c88c3b616c00 86 / 866 - Russian
IKobayashi 0:c88c3b616c00 87 / 869 - Greek 2
IKobayashi 0:c88c3b616c00 88 / 932 - Japanese (DBCS)
IKobayashi 0:c88c3b616c00 89 / 936 - Simplified Chinese (DBCS)
IKobayashi 0:c88c3b616c00 90 / 949 - Korean (DBCS)
IKobayashi 0:c88c3b616c00 91 / 950 - Traditional Chinese (DBCS)
IKobayashi 0:c88c3b616c00 92 */
IKobayashi 0:c88c3b616c00 93
IKobayashi 0:c88c3b616c00 94
IKobayashi 0:c88c3b616c00 95 #define _USE_LFN 1
IKobayashi 0:c88c3b616c00 96 #define _MAX_LFN 255
IKobayashi 0:c88c3b616c00 97 /* The _USE_LFN option switches the LFN feature.
IKobayashi 0:c88c3b616c00 98 /
IKobayashi 0:c88c3b616c00 99 / 0: Disable LFN feature. _MAX_LFN has no effect.
IKobayashi 0:c88c3b616c00 100 / 1: Enable LFN with static working buffer on the BSS. Always NOT thread-safe.
IKobayashi 0:c88c3b616c00 101 / 2: Enable LFN with dynamic working buffer on the STACK.
IKobayashi 0:c88c3b616c00 102 / 3: Enable LFN with dynamic working buffer on the HEAP.
IKobayashi 0:c88c3b616c00 103 /
IKobayashi 0:c88c3b616c00 104 / When enable the LFN feature, Unicode handling functions (option/unicode.c) must
IKobayashi 0:c88c3b616c00 105 / be added to the project. The LFN working buffer occupies (_MAX_LFN + 1) * 2 bytes.
IKobayashi 0:c88c3b616c00 106 / When use stack for the working buffer, take care on stack overflow. When use heap
IKobayashi 0:c88c3b616c00 107 / memory for the working buffer, memory management functions, ff_memalloc() and
IKobayashi 0:c88c3b616c00 108 / ff_memfree(), must be added to the project. */
IKobayashi 0:c88c3b616c00 109
IKobayashi 0:c88c3b616c00 110
IKobayashi 0:c88c3b616c00 111 #define _LFN_UNICODE 0
IKobayashi 0:c88c3b616c00 112 /* This option switches character encoding on the API. (0:ANSI/OEM or 1:Unicode)
IKobayashi 0:c88c3b616c00 113 / To use Unicode string for the path name, enable LFN feature and set _LFN_UNICODE
IKobayashi 0:c88c3b616c00 114 / to 1. This option also affects behavior of string I/O functions. */
IKobayashi 0:c88c3b616c00 115
IKobayashi 0:c88c3b616c00 116
IKobayashi 0:c88c3b616c00 117 #define _STRF_ENCODE 3
IKobayashi 0:c88c3b616c00 118 /* When _LFN_UNICODE is 1, this option selects the character encoding on the file to
IKobayashi 0:c88c3b616c00 119 / be read/written via string I/O functions, f_gets(), f_putc(), f_puts and f_printf().
IKobayashi 0:c88c3b616c00 120 /
IKobayashi 0:c88c3b616c00 121 / 0: ANSI/OEM
IKobayashi 0:c88c3b616c00 122 / 1: UTF-16LE
IKobayashi 0:c88c3b616c00 123 / 2: UTF-16BE
IKobayashi 0:c88c3b616c00 124 / 3: UTF-8
IKobayashi 0:c88c3b616c00 125 /
IKobayashi 0:c88c3b616c00 126 / When _LFN_UNICODE is 0, this option has no effect. */
IKobayashi 0:c88c3b616c00 127
IKobayashi 0:c88c3b616c00 128
IKobayashi 0:c88c3b616c00 129 #define _FS_RPATH 0
IKobayashi 0:c88c3b616c00 130 /* This option configures relative path feature.
IKobayashi 0:c88c3b616c00 131 /
IKobayashi 0:c88c3b616c00 132 / 0: Disable relative path feature and remove related functions.
IKobayashi 0:c88c3b616c00 133 / 1: Enable relative path feature. f_chdir() and f_chdrive() are available.
IKobayashi 0:c88c3b616c00 134 / 2: f_getcwd() function is available in addition to 1.
IKobayashi 0:c88c3b616c00 135 /
IKobayashi 0:c88c3b616c00 136 / Note that directory items read via f_readdir() are affected by this option. */
IKobayashi 0:c88c3b616c00 137
IKobayashi 0:c88c3b616c00 138
IKobayashi 0:c88c3b616c00 139 /*---------------------------------------------------------------------------/
IKobayashi 0:c88c3b616c00 140 / Drive/Volume Configurations
IKobayashi 0:c88c3b616c00 141 /---------------------------------------------------------------------------*/
IKobayashi 0:c88c3b616c00 142
IKobayashi 0:c88c3b616c00 143 #define _VOLUMES 1
IKobayashi 0:c88c3b616c00 144 /* Number of volumes (logical drives) to be used. */
IKobayashi 0:c88c3b616c00 145
IKobayashi 0:c88c3b616c00 146
IKobayashi 0:c88c3b616c00 147 #define _STR_VOLUME_ID 0
IKobayashi 0:c88c3b616c00 148 #define _VOLUME_STRS "RAM","NAND","CF","SD1","SD2","USB1","USB2","USB3"
IKobayashi 0:c88c3b616c00 149 /* _STR_VOLUME_ID option switches string volume ID feature.
IKobayashi 0:c88c3b616c00 150 / When _STR_VOLUME_ID is set to 1, also pre-defined strings can be used as drive
IKobayashi 0:c88c3b616c00 151 / number in the path name. _VOLUME_STRS defines the drive ID strings for each
IKobayashi 0:c88c3b616c00 152 / logical drives. Number of items must be equal to _VOLUMES. Valid characters for
IKobayashi 0:c88c3b616c00 153 / the drive ID strings are: A-Z and 0-9. */
IKobayashi 0:c88c3b616c00 154
IKobayashi 0:c88c3b616c00 155
IKobayashi 0:c88c3b616c00 156 #define _MULTI_PARTITION 0
IKobayashi 0:c88c3b616c00 157 /* This option switches multi-partition feature. By default (0), each logical drive
IKobayashi 0:c88c3b616c00 158 / number is bound to the same physical drive number and only an FAT volume found on
IKobayashi 0:c88c3b616c00 159 / the physical drive will be mounted. When multi-partition feature is enabled (1),
IKobayashi 0:c88c3b616c00 160 / each logical drive number is bound to arbitrary physical drive and partition
IKobayashi 0:c88c3b616c00 161 / listed in the VolToPart[]. Also f_fdisk() funciton will be available. */
IKobayashi 0:c88c3b616c00 162
IKobayashi 0:c88c3b616c00 163
IKobayashi 0:c88c3b616c00 164 #define _MIN_SS 512
IKobayashi 0:c88c3b616c00 165 #define _MAX_SS 512
IKobayashi 0:c88c3b616c00 166 /* These options configure the range of sector size to be supported. (512, 1024,
IKobayashi 0:c88c3b616c00 167 / 2048 or 4096) Always set both 512 for most systems, all type of memory cards and
IKobayashi 0:c88c3b616c00 168 / harddisk. But a larger value may be required for on-board flash memory and some
IKobayashi 0:c88c3b616c00 169 / type of optical media. When _MAX_SS is larger than _MIN_SS, FatFs is configured
IKobayashi 0:c88c3b616c00 170 / to variable sector size and GET_SECTOR_SIZE command must be implemented to the
IKobayashi 0:c88c3b616c00 171 / disk_ioctl() function. */
IKobayashi 0:c88c3b616c00 172
IKobayashi 0:c88c3b616c00 173
IKobayashi 0:c88c3b616c00 174 #define _USE_TRIM 0
IKobayashi 0:c88c3b616c00 175 /* This option switches ATA-TRIM feature. (0:Disable or 1:Enable)
IKobayashi 0:c88c3b616c00 176 / To enable Trim feature, also CTRL_TRIM command should be implemented to the
IKobayashi 0:c88c3b616c00 177 / disk_ioctl() function. */
IKobayashi 0:c88c3b616c00 178
IKobayashi 0:c88c3b616c00 179
IKobayashi 0:c88c3b616c00 180 #define _FS_NOFSINFO 0
IKobayashi 0:c88c3b616c00 181 /* If you need to know correct free space on the FAT32 volume, set bit 0 of this
IKobayashi 0:c88c3b616c00 182 / option, and f_getfree() function at first time after volume mount will force
IKobayashi 0:c88c3b616c00 183 / a full FAT scan. Bit 1 controls the use of last allocated cluster number.
IKobayashi 0:c88c3b616c00 184 /
IKobayashi 0:c88c3b616c00 185 / bit0=0: Use free cluster count in the FSINFO if available.
IKobayashi 0:c88c3b616c00 186 / bit0=1: Do not trust free cluster count in the FSINFO.
IKobayashi 0:c88c3b616c00 187 / bit1=0: Use last allocated cluster number in the FSINFO if available.
IKobayashi 0:c88c3b616c00 188 / bit1=1: Do not trust last allocated cluster number in the FSINFO.
IKobayashi 0:c88c3b616c00 189 */
IKobayashi 0:c88c3b616c00 190
IKobayashi 0:c88c3b616c00 191
IKobayashi 0:c88c3b616c00 192
IKobayashi 0:c88c3b616c00 193 /*---------------------------------------------------------------------------/
IKobayashi 0:c88c3b616c00 194 / System Configurations
IKobayashi 0:c88c3b616c00 195 /---------------------------------------------------------------------------*/
IKobayashi 0:c88c3b616c00 196
IKobayashi 0:c88c3b616c00 197 #define _FS_TINY 0
IKobayashi 0:c88c3b616c00 198 /* This option switches tiny buffer configuration. (0:Normal or 1:Tiny)
IKobayashi 0:c88c3b616c00 199 / At the tiny configuration, size of the file object (FIL) is reduced _MAX_SS
IKobayashi 0:c88c3b616c00 200 / bytes. Instead of private sector buffer eliminated from the file object,
IKobayashi 0:c88c3b616c00 201 / common sector buffer in the file system object (FATFS) is used for the file
IKobayashi 0:c88c3b616c00 202 / data transfer. */
IKobayashi 0:c88c3b616c00 203
IKobayashi 0:c88c3b616c00 204
IKobayashi 0:c88c3b616c00 205 #define _FS_NORTC 0
IKobayashi 0:c88c3b616c00 206 #define _NORTC_MON 1
IKobayashi 0:c88c3b616c00 207 #define _NORTC_MDAY 1
IKobayashi 0:c88c3b616c00 208 #define _NORTC_YEAR 2015
IKobayashi 0:c88c3b616c00 209 /* The _FS_NORTC option switches timestamp feature. If the system does not have
IKobayashi 0:c88c3b616c00 210 / an RTC function or valid timestamp is not needed, set _FS_NORTC to 1 to disable
IKobayashi 0:c88c3b616c00 211 / the timestamp feature. All objects modified by FatFs will have a fixed timestamp
IKobayashi 0:c88c3b616c00 212 / defined by _NORTC_MON, _NORTC_MDAY and _NORTC_YEAR.
IKobayashi 0:c88c3b616c00 213 / When timestamp feature is enabled (_FS_NORTC == 0), get_fattime() function need
IKobayashi 0:c88c3b616c00 214 / to be added to the project to read current time form RTC. _NORTC_MON,
IKobayashi 0:c88c3b616c00 215 / _NORTC_MDAY and _NORTC_YEAR have no effect.
IKobayashi 0:c88c3b616c00 216 / These options have no effect at read-only configuration (_FS_READONLY == 1). */
IKobayashi 0:c88c3b616c00 217
IKobayashi 0:c88c3b616c00 218
IKobayashi 0:c88c3b616c00 219 #define _FS_LOCK 0
IKobayashi 0:c88c3b616c00 220 /* The _FS_LOCK option switches file lock feature to control duplicated file open
IKobayashi 0:c88c3b616c00 221 / and illegal operation to open objects. This option must be 0 when _FS_READONLY
IKobayashi 0:c88c3b616c00 222 / is 1.
IKobayashi 0:c88c3b616c00 223 /
IKobayashi 0:c88c3b616c00 224 / 0: Disable file lock feature. To avoid volume corruption, application program
IKobayashi 0:c88c3b616c00 225 / should avoid illegal open, remove and rename to the open objects.
IKobayashi 0:c88c3b616c00 226 / >0: Enable file lock feature. The value defines how many files/sub-directories
IKobayashi 0:c88c3b616c00 227 / can be opened simultaneously under file lock control. Note that the file
IKobayashi 0:c88c3b616c00 228 / lock feature is independent of re-entrancy. */
IKobayashi 0:c88c3b616c00 229
IKobayashi 0:c88c3b616c00 230
IKobayashi 0:c88c3b616c00 231 #define _FS_REENTRANT 0
IKobayashi 0:c88c3b616c00 232 #define _FS_TIMEOUT 1000
IKobayashi 0:c88c3b616c00 233 #define _SYNC_t HANDLE
IKobayashi 0:c88c3b616c00 234 /* The _FS_REENTRANT option switches the re-entrancy (thread safe) of the FatFs
IKobayashi 0:c88c3b616c00 235 / module itself. Note that regardless of this option, file access to different
IKobayashi 0:c88c3b616c00 236 / volume is always re-entrant and volume control functions, f_mount(), f_mkfs()
IKobayashi 0:c88c3b616c00 237 / and f_fdisk() function, are always not re-entrant. Only file/directory access
IKobayashi 0:c88c3b616c00 238 / to the same volume is under control of this feature.
IKobayashi 0:c88c3b616c00 239 /
IKobayashi 0:c88c3b616c00 240 / 0: Disable re-entrancy. _FS_TIMEOUT and _SYNC_t have no effect.
IKobayashi 0:c88c3b616c00 241 / 1: Enable re-entrancy. Also user provided synchronization handlers,
IKobayashi 0:c88c3b616c00 242 / ff_req_grant(), ff_rel_grant(), ff_del_syncobj() and ff_cre_syncobj()
IKobayashi 0:c88c3b616c00 243 / function, must be added to the project. Samples are available in
IKobayashi 0:c88c3b616c00 244 / option/syscall.c.
IKobayashi 0:c88c3b616c00 245 /
IKobayashi 0:c88c3b616c00 246 / The _FS_TIMEOUT defines timeout period in unit of time tick.
IKobayashi 0:c88c3b616c00 247 / The _SYNC_t defines O/S dependent sync object type. e.g. HANDLE, ID, OS_EVENT*,
IKobayashi 0:c88c3b616c00 248 / SemaphoreHandle_t and etc.. A header file for O/S definitions needs to be
IKobayashi 0:c88c3b616c00 249 / included somewhere in the scope of ff.c. */
IKobayashi 0:c88c3b616c00 250
IKobayashi 0:c88c3b616c00 251
IKobayashi 0:c88c3b616c00 252 #define _WORD_ACCESS 0
IKobayashi 0:c88c3b616c00 253 /* The _WORD_ACCESS option is an only platform dependent option. It defines
IKobayashi 0:c88c3b616c00 254 / which access method is used to the word data on the FAT volume.
IKobayashi 0:c88c3b616c00 255 /
IKobayashi 0:c88c3b616c00 256 / 0: Byte-by-byte access. Always compatible with all platforms.
IKobayashi 0:c88c3b616c00 257 / 1: Word access. Do not choose this unless under both the following conditions.
IKobayashi 0:c88c3b616c00 258 /
IKobayashi 0:c88c3b616c00 259 / * Address misaligned memory access is always allowed to ALL instructions.
IKobayashi 0:c88c3b616c00 260 / * Byte order on the memory is little-endian.
IKobayashi 0:c88c3b616c00 261 /
IKobayashi 0:c88c3b616c00 262 / If it is the case, _WORD_ACCESS can also be set to 1 to reduce code size.
IKobayashi 0:c88c3b616c00 263 / Following table shows allowable settings of some type of processors.
IKobayashi 0:c88c3b616c00 264 /
IKobayashi 0:c88c3b616c00 265 / ARM7TDMI 0 *2 ColdFire 0 *1 V850E 0 *2
IKobayashi 0:c88c3b616c00 266 / Cortex-M3 0 *3 Z80 0/1 V850ES 0/1
IKobayashi 0:c88c3b616c00 267 / Cortex-M0 0 *2 x86 0/1 TLCS-870 0/1
IKobayashi 0:c88c3b616c00 268 / AVR 0/1 RX600(LE) 0/1 TLCS-900 0/1
IKobayashi 0:c88c3b616c00 269 / AVR32 0 *1 RL78 0 *2 R32C 0 *2
IKobayashi 0:c88c3b616c00 270 / PIC18 0/1 SH-2 0 *1 M16C 0/1
IKobayashi 0:c88c3b616c00 271 / PIC24 0 *2 H8S 0 *1 MSP430 0 *2
IKobayashi 0:c88c3b616c00 272 / PIC32 0 *1 H8/300H 0 *1 8051 0/1
IKobayashi 0:c88c3b616c00 273 /
IKobayashi 0:c88c3b616c00 274 / *1:Big-endian.
IKobayashi 0:c88c3b616c00 275 / *2:Unaligned memory access is not supported.
IKobayashi 0:c88c3b616c00 276 / *3:Some compilers generate LDM/STM for mem_cpy function.
IKobayashi 0:c88c3b616c00 277 */
IKobayashi 0:c88c3b616c00 278
IKobayashi 0:c88c3b616c00 279 #define FLUSH_ON_NEW_CLUSTER 0 /* Sync the file on every new cluster */
IKobayashi 0:c88c3b616c00 280 #define FLUSH_ON_NEW_SECTOR 1 /* Sync the file on every new sector */
IKobayashi 0:c88c3b616c00 281 /* Only one of these two defines needs to be set to 1. If both are set to 0
IKobayashi 0:c88c3b616c00 282 the file is only sync when closed.
IKobayashi 0:c88c3b616c00 283 Clusters are group of sectors (eg: 8 sectors). Flushing on new cluster means
IKobayashi 0:c88c3b616c00 284 it would be less often than flushing on new sector. Sectors are generally
IKobayashi 0:c88c3b616c00 285 512 Bytes long. */