dd

Dependencies:   C12832 LM75B mbed

Committer:
pfe
Date:
Tue Apr 21 10:16:20 2015 +0000
Revision:
0:05a20e3e3179
dd

Who changed what in which revision?

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