P2-2 Harris Barton

Dependencies:   mbed wave_player 4DGL-uLCD-SE MMA8452

Committer:
DCchico
Date:
Fri Oct 23 16:18:39 2020 -0400
Revision:
1:10330bce85cb
shell-code

Who changed what in which revision?

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