Library for SD card

Dependents:   City_Game_JSON saver-noenvio-1 SNOCC_V2 lab7_prog1 ... more

Committer:
AlexVC97
Date:
Wed Mar 29 07:00:22 2017 +0000
Revision:
0:3bdfc1556537
SDFileSystem Library

Who changed what in which revision?

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