Mark Schwarzer / Mbed 2 deprecated Project_OCE360

Dependencies:   mbed

Committer:
jrschaedler
Date:
Thu Dec 10 14:09:58 2020 +0000
Revision:
16:54c15eaadf88
Parent:
0:852fb667f2d6
final test?

Who changed what in which revision?

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