Some library needed for things? Licence unknown

Dependents:   LEDSign_SimpleSD

Committer:
TBSliver
Date:
Sun Jul 29 10:07:38 2012 +0000
Revision:
0:e4324838bc6f
[mbed] converted /LEDSign_SimpleSD/FatFileSystem

Who changed what in which revision?

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