LCD1289Serial_Ethenet

Dependencies:   EthernetInterface FatFileSystemCpp SDFileSystem mbed-rtos mbed

Committer:
shindo
Date:
Wed Nov 07 06:42:34 2012 +0000
Revision:
0:a5367e4d8591
LCD1289Serial_Ethenet

Who changed what in which revision?

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