Lab Checkoff

Dependencies:   SDFileSystem TextLCD mbed-rtos mbed wave_player FATFileSystem

Committer:
doubster
Date:
Wed Nov 13 20:00:28 2013 +0000
Revision:
0:67dbd54e60d4
Lab Checkoff

Who changed what in which revision?

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