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