goutham dugyala / FATFilesystem_Axelta

Dependents:   SDFileSystem_Axelta

Committer:
gauthibit
Date:
Fri Nov 11 06:39:00 2016 +0000
Revision:
0:6547fbc0f7c0
FAT

Who changed what in which revision?

UserRevisionLine numberNew contents of line
gauthibit 0:6547fbc0f7c0 1 /*---------------------------------------------------------------------------/
gauthibit 0:6547fbc0f7c0 2 / FatFs - FAT file system module configuration file R0.09a (C)ChaN, 2012
gauthibit 0:6547fbc0f7c0 3 /----------------------------------------------------------------------------/
gauthibit 0:6547fbc0f7c0 4 /
gauthibit 0:6547fbc0f7c0 5 / CAUTION! Do not forget to make clean the project after any changes to
gauthibit 0:6547fbc0f7c0 6 / the configuration options.
gauthibit 0:6547fbc0f7c0 7 /
gauthibit 0:6547fbc0f7c0 8 /----------------------------------------------------------------------------*/
gauthibit 0:6547fbc0f7c0 9 #ifndef _FFCONF
gauthibit 0:6547fbc0f7c0 10 #define _FFCONF 4004 /* Revision ID */
gauthibit 0:6547fbc0f7c0 11
gauthibit 0:6547fbc0f7c0 12 #define FFS_DBG 0
gauthibit 0:6547fbc0f7c0 13
gauthibit 0:6547fbc0f7c0 14 /*---------------------------------------------------------------------------/
gauthibit 0:6547fbc0f7c0 15 / Functions and Buffer Configurations
gauthibit 0:6547fbc0f7c0 16 /----------------------------------------------------------------------------*/
gauthibit 0:6547fbc0f7c0 17
gauthibit 0:6547fbc0f7c0 18 #define _FS_TINY 0 /* 0:Normal or 1:Tiny */
gauthibit 0:6547fbc0f7c0 19 /* When _FS_TINY is set to 1, FatFs uses the sector buffer in the file system
gauthibit 0:6547fbc0f7c0 20 / object instead of the sector buffer in the individual file object for file
gauthibit 0:6547fbc0f7c0 21 / data transfer. This reduces memory consumption 512 bytes each file object. */
gauthibit 0:6547fbc0f7c0 22
gauthibit 0:6547fbc0f7c0 23
gauthibit 0:6547fbc0f7c0 24 #define _FS_READONLY 0 /* 0:Read/Write or 1:Read only */
gauthibit 0:6547fbc0f7c0 25 /* Setting _FS_READONLY to 1 defines read only configuration. This removes
gauthibit 0:6547fbc0f7c0 26 / writing functions, f_write, f_sync, f_unlink, f_mkdir, f_chmod, f_rename,
gauthibit 0:6547fbc0f7c0 27 / f_truncate and useless f_getfree. */
gauthibit 0:6547fbc0f7c0 28
gauthibit 0:6547fbc0f7c0 29
gauthibit 0:6547fbc0f7c0 30 #define _FS_MINIMIZE 0 /* 0 to 3 */
gauthibit 0:6547fbc0f7c0 31 /* The _FS_MINIMIZE option defines minimization level to remove some functions.
gauthibit 0:6547fbc0f7c0 32 /
gauthibit 0:6547fbc0f7c0 33 / 0: Full function.
gauthibit 0:6547fbc0f7c0 34 / 1: f_stat, f_getfree, f_unlink, f_mkdir, f_chmod, f_truncate and f_rename
gauthibit 0:6547fbc0f7c0 35 / are removed.
gauthibit 0:6547fbc0f7c0 36 / 2: f_opendir and f_readdir are removed in addition to 1.
gauthibit 0:6547fbc0f7c0 37 / 3: f_lseek is removed in addition to 2. */
gauthibit 0:6547fbc0f7c0 38
gauthibit 0:6547fbc0f7c0 39
gauthibit 0:6547fbc0f7c0 40 #define _USE_STRFUNC 0 /* 0:Disable or 1-2:Enable */
gauthibit 0:6547fbc0f7c0 41 /* To enable string functions, set _USE_STRFUNC to 1 or 2. */
gauthibit 0:6547fbc0f7c0 42
gauthibit 0:6547fbc0f7c0 43
gauthibit 0:6547fbc0f7c0 44 #define _USE_MKFS 1 /* 0:Disable or 1:Enable */
gauthibit 0:6547fbc0f7c0 45 /* To enable f_mkfs function, set _USE_MKFS to 1 and set _FS_READONLY to 0 */
gauthibit 0:6547fbc0f7c0 46
gauthibit 0:6547fbc0f7c0 47
gauthibit 0:6547fbc0f7c0 48 #define _USE_FORWARD 0 /* 0:Disable or 1:Enable */
gauthibit 0:6547fbc0f7c0 49 /* To enable f_forward function, set _USE_FORWARD to 1 and set _FS_TINY to 1. */
gauthibit 0:6547fbc0f7c0 50
gauthibit 0:6547fbc0f7c0 51
gauthibit 0:6547fbc0f7c0 52 #define _USE_FASTSEEK 0 /* 0:Disable or 1:Enable */
gauthibit 0:6547fbc0f7c0 53 /* To enable fast seek feature, set _USE_FASTSEEK to 1. */
gauthibit 0:6547fbc0f7c0 54
gauthibit 0:6547fbc0f7c0 55
gauthibit 0:6547fbc0f7c0 56
gauthibit 0:6547fbc0f7c0 57 /*---------------------------------------------------------------------------/
gauthibit 0:6547fbc0f7c0 58 / Locale and Namespace Configurations
gauthibit 0:6547fbc0f7c0 59 /----------------------------------------------------------------------------*/
gauthibit 0:6547fbc0f7c0 60
gauthibit 0:6547fbc0f7c0 61 #define _CODE_PAGE 858
gauthibit 0:6547fbc0f7c0 62 /* The _CODE_PAGE specifies the OEM code page to be used on the target system.
gauthibit 0:6547fbc0f7c0 63 / Incorrect setting of the code page can cause a file open failure.
gauthibit 0:6547fbc0f7c0 64 /
gauthibit 0:6547fbc0f7c0 65 / 932 - Japanese Shift-JIS (DBCS, OEM, Windows)
gauthibit 0:6547fbc0f7c0 66 / 936 - Simplified Chinese GBK (DBCS, OEM, Windows)
gauthibit 0:6547fbc0f7c0 67 / 949 - Korean (DBCS, OEM, Windows)
gauthibit 0:6547fbc0f7c0 68 / 950 - Traditional Chinese Big5 (DBCS, OEM, Windows)
gauthibit 0:6547fbc0f7c0 69 / 1250 - Central Europe (Windows)
gauthibit 0:6547fbc0f7c0 70 / 1251 - Cyrillic (Windows)
gauthibit 0:6547fbc0f7c0 71 / 1252 - Latin 1 (Windows)
gauthibit 0:6547fbc0f7c0 72 / 1253 - Greek (Windows)
gauthibit 0:6547fbc0f7c0 73 / 1254 - Turkish (Windows)
gauthibit 0:6547fbc0f7c0 74 / 1255 - Hebrew (Windows)
gauthibit 0:6547fbc0f7c0 75 / 1256 - Arabic (Windows)
gauthibit 0:6547fbc0f7c0 76 / 1257 - Baltic (Windows)
gauthibit 0:6547fbc0f7c0 77 / 1258 - Vietnam (OEM, Windows)
gauthibit 0:6547fbc0f7c0 78 / 437 - U.S. (OEM)
gauthibit 0:6547fbc0f7c0 79 / 720 - Arabic (OEM)
gauthibit 0:6547fbc0f7c0 80 / 737 - Greek (OEM)
gauthibit 0:6547fbc0f7c0 81 / 775 - Baltic (OEM)
gauthibit 0:6547fbc0f7c0 82 / 850 - Multilingual Latin 1 (OEM)
gauthibit 0:6547fbc0f7c0 83 / 858 - Multilingual Latin 1 + Euro (OEM)
gauthibit 0:6547fbc0f7c0 84 / 852 - Latin 2 (OEM)
gauthibit 0:6547fbc0f7c0 85 / 855 - Cyrillic (OEM)
gauthibit 0:6547fbc0f7c0 86 / 866 - Russian (OEM)
gauthibit 0:6547fbc0f7c0 87 / 857 - Turkish (OEM)
gauthibit 0:6547fbc0f7c0 88 / 862 - Hebrew (OEM)
gauthibit 0:6547fbc0f7c0 89 / 874 - Thai (OEM, Windows)
gauthibit 0:6547fbc0f7c0 90 / 1 - ASCII only (Valid for non LFN cfg.)
gauthibit 0:6547fbc0f7c0 91 */
gauthibit 0:6547fbc0f7c0 92
gauthibit 0:6547fbc0f7c0 93
gauthibit 0:6547fbc0f7c0 94 #define _USE_LFN 1 /* 0 to 3 */
gauthibit 0:6547fbc0f7c0 95 #define _MAX_LFN 255 /* Maximum LFN length to handle (12 to 255) */
gauthibit 0:6547fbc0f7c0 96 /* The _USE_LFN option switches the LFN support.
gauthibit 0:6547fbc0f7c0 97 /
gauthibit 0:6547fbc0f7c0 98 / 0: Disable LFN feature. _MAX_LFN and _LFN_UNICODE have no effect.
gauthibit 0:6547fbc0f7c0 99 / 1: Enable LFN with static working buffer on the BSS. Always NOT reentrant.
gauthibit 0:6547fbc0f7c0 100 / 2: Enable LFN with dynamic working buffer on the STACK.
gauthibit 0:6547fbc0f7c0 101 / 3: Enable LFN with dynamic working buffer on the HEAP.
gauthibit 0:6547fbc0f7c0 102 /
gauthibit 0:6547fbc0f7c0 103 / The LFN working buffer occupies (_MAX_LFN + 1) * 2 bytes. To enable LFN,
gauthibit 0:6547fbc0f7c0 104 / Unicode handling functions ff_convert() and ff_wtoupper() must be added
gauthibit 0:6547fbc0f7c0 105 / to the project. When enable to use heap, memory control functions
gauthibit 0:6547fbc0f7c0 106 / ff_memalloc() and ff_memfree() must be added to the project. */
gauthibit 0:6547fbc0f7c0 107
gauthibit 0:6547fbc0f7c0 108
gauthibit 0:6547fbc0f7c0 109 #define _LFN_UNICODE 0 /* 0:ANSI/OEM or 1:Unicode */
gauthibit 0:6547fbc0f7c0 110 /* To switch the character code set on FatFs API to Unicode,
gauthibit 0:6547fbc0f7c0 111 / enable LFN feature and set _LFN_UNICODE to 1. */
gauthibit 0:6547fbc0f7c0 112
gauthibit 0:6547fbc0f7c0 113
gauthibit 0:6547fbc0f7c0 114 #define _FS_RPATH 0 /* 0 to 2 */
gauthibit 0:6547fbc0f7c0 115 /* The _FS_RPATH option configures relative path feature.
gauthibit 0:6547fbc0f7c0 116 /
gauthibit 0:6547fbc0f7c0 117 / 0: Disable relative path feature and remove related functions.
gauthibit 0:6547fbc0f7c0 118 / 1: Enable relative path. f_chdrive() and f_chdir() are available.
gauthibit 0:6547fbc0f7c0 119 / 2: f_getcwd() is available in addition to 1.
gauthibit 0:6547fbc0f7c0 120 /
gauthibit 0:6547fbc0f7c0 121 / Note that output of the f_readdir fnction is affected by this option. */
gauthibit 0:6547fbc0f7c0 122
gauthibit 0:6547fbc0f7c0 123
gauthibit 0:6547fbc0f7c0 124
gauthibit 0:6547fbc0f7c0 125 /*---------------------------------------------------------------------------/
gauthibit 0:6547fbc0f7c0 126 / Physical Drive Configurations
gauthibit 0:6547fbc0f7c0 127 /----------------------------------------------------------------------------*/
gauthibit 0:6547fbc0f7c0 128
gauthibit 0:6547fbc0f7c0 129 #define _VOLUMES 1
gauthibit 0:6547fbc0f7c0 130 /* Number of volumes (logical drives) to be used. */
gauthibit 0:6547fbc0f7c0 131
gauthibit 0:6547fbc0f7c0 132
gauthibit 0:6547fbc0f7c0 133 #define _MAX_SS 512 /* 512, 1024, 2048 or 4096 */
gauthibit 0:6547fbc0f7c0 134 /* Maximum sector size to be handled.
gauthibit 0:6547fbc0f7c0 135 / Always set 512 for memory card and hard disk but a larger value may be
gauthibit 0:6547fbc0f7c0 136 / required for on-board flash memory, floppy disk and optical disk.
gauthibit 0:6547fbc0f7c0 137 / When _MAX_SS is larger than 512, it configures FatFs to variable sector size
gauthibit 0:6547fbc0f7c0 138 / and GET_SECTOR_SIZE command must be implememted to the disk_ioctl function. */
gauthibit 0:6547fbc0f7c0 139
gauthibit 0:6547fbc0f7c0 140
gauthibit 0:6547fbc0f7c0 141 #define _MULTI_PARTITION 0 /* 0:Single partition, 1/2:Enable multiple partition */
gauthibit 0:6547fbc0f7c0 142 /* When set to 0, each volume is bound to the same physical drive number and
gauthibit 0:6547fbc0f7c0 143 / it can mount only first primaly partition. When it is set to 1, each volume
gauthibit 0:6547fbc0f7c0 144 / is tied to the partitions listed in VolToPart[]. */
gauthibit 0:6547fbc0f7c0 145
gauthibit 0:6547fbc0f7c0 146
gauthibit 0:6547fbc0f7c0 147 #define _USE_ERASE 0 /* 0:Disable or 1:Enable */
gauthibit 0:6547fbc0f7c0 148 /* To enable sector erase feature, set _USE_ERASE to 1. CTRL_ERASE_SECTOR command
gauthibit 0:6547fbc0f7c0 149 / should be added to the disk_ioctl functio. */
gauthibit 0:6547fbc0f7c0 150
gauthibit 0:6547fbc0f7c0 151
gauthibit 0:6547fbc0f7c0 152
gauthibit 0:6547fbc0f7c0 153 /*---------------------------------------------------------------------------/
gauthibit 0:6547fbc0f7c0 154 / System Configurations
gauthibit 0:6547fbc0f7c0 155 /----------------------------------------------------------------------------*/
gauthibit 0:6547fbc0f7c0 156
gauthibit 0:6547fbc0f7c0 157 #define _WORD_ACCESS 0 /* 0 or 1 */
gauthibit 0:6547fbc0f7c0 158 /* Set 0 first and it is always compatible with all platforms. The _WORD_ACCESS
gauthibit 0:6547fbc0f7c0 159 / option defines which access method is used to the word data on the FAT volume.
gauthibit 0:6547fbc0f7c0 160 /
gauthibit 0:6547fbc0f7c0 161 / 0: Byte-by-byte access.
gauthibit 0:6547fbc0f7c0 162 / 1: Word access. Do not choose this unless following condition is met.
gauthibit 0:6547fbc0f7c0 163 /
gauthibit 0:6547fbc0f7c0 164 / When the byte order on the memory is big-endian or address miss-aligned word
gauthibit 0:6547fbc0f7c0 165 / access results incorrect behavior, the _WORD_ACCESS must be set to 0.
gauthibit 0:6547fbc0f7c0 166 / If it is not the case, the value can also be set to 1 to improve the
gauthibit 0:6547fbc0f7c0 167 / performance and code size.
gauthibit 0:6547fbc0f7c0 168 */
gauthibit 0:6547fbc0f7c0 169
gauthibit 0:6547fbc0f7c0 170
gauthibit 0:6547fbc0f7c0 171 /* A header file that defines sync object types on the O/S, such as
gauthibit 0:6547fbc0f7c0 172 / windows.h, ucos_ii.h and semphr.h, must be included prior to ff.h. */
gauthibit 0:6547fbc0f7c0 173
gauthibit 0:6547fbc0f7c0 174 #define _FS_REENTRANT 0 /* 0:Disable or 1:Enable */
gauthibit 0:6547fbc0f7c0 175 #define _FS_TIMEOUT 1000 /* Timeout period in unit of time ticks */
gauthibit 0:6547fbc0f7c0 176 #define _SYNC_t HANDLE /* O/S dependent type of sync object. e.g. HANDLE, OS_EVENT*, ID and etc.. */
gauthibit 0:6547fbc0f7c0 177
gauthibit 0:6547fbc0f7c0 178 /* The _FS_REENTRANT option switches the reentrancy (thread safe) of the FatFs module.
gauthibit 0:6547fbc0f7c0 179 /
gauthibit 0:6547fbc0f7c0 180 / 0: Disable reentrancy. _SYNC_t and _FS_TIMEOUT have no effect.
gauthibit 0:6547fbc0f7c0 181 / 1: Enable reentrancy. Also user provided synchronization handlers,
gauthibit 0:6547fbc0f7c0 182 / ff_req_grant, ff_rel_grant, ff_del_syncobj and ff_cre_syncobj
gauthibit 0:6547fbc0f7c0 183 / function must be added to the project. */
gauthibit 0:6547fbc0f7c0 184
gauthibit 0:6547fbc0f7c0 185
gauthibit 0:6547fbc0f7c0 186 #define _FS_LOCK 0 /* 0:Disable or >=1:Enable */
gauthibit 0:6547fbc0f7c0 187 /* To enable file lock control feature, set _FS_LOCK to 1 or greater.
gauthibit 0:6547fbc0f7c0 188 The value defines how many files can be opened simultaneously. */
gauthibit 0:6547fbc0f7c0 189
gauthibit 0:6547fbc0f7c0 190
gauthibit 0:6547fbc0f7c0 191 #endif /* _FFCONFIG */