Preliminary main mbed library for nexpaq development

Committer:
nexpaq
Date:
Fri Nov 04 20:54:50 2016 +0000
Revision:
1:d96dbedaebdb
Parent:
0:6c56fb4bc5f0
Removed extra directories for other platforms

Who changed what in which revision?

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