the do / gr-peach-opencv-project

Fork of gr-peach-opencv-project by the do

Committer:
thedo
Date:
Thu Jun 29 11:00:41 2017 +0000
Revision:
166:3a9487d57a5c
This is Opencv 3.1 project on GR-PEACH board

Who changed what in which revision?

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