EA BaseBoard, playing wav, PC see\'s SD-card through USB port.

Dependencies:   mbed

Committer:
Lerche
Date:
Tue Nov 22 05:45:58 2011 +0000
Revision:
0:fef366d2ed20
Thanks to those who provided EA_WavPlayer and USB_MSC

Who changed what in which revision?

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