ECE 2036 Project

Dependencies:   mbed wave_player 4DGL-uLCD-SE

Committer:
abraha2d
Date:
Thu Nov 21 16:10:57 2019 +0000
Revision:
2:2042f29de6b7
Parent:
0:cf4396614a79
Because other peeps is wanting dis...

Who changed what in which revision?

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