James Heavey / Mbed 2 deprecated 2665-Breakout-Game

Dependencies:   mbed

Committer:
jamesheavey
Date:
Tue Jan 05 01:14:11 2021 +0000
Revision:
0:92b180c8d407
test

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jamesheavey 0:92b180c8d407 1 /*---------------------------------------------------------------------------/
jamesheavey 0:92b180c8d407 2 / FatFs - FAT file system module configuration file R0.11a (C)ChaN, 2015
jamesheavey 0:92b180c8d407 3 /---------------------------------------------------------------------------*/
jamesheavey 0:92b180c8d407 4
jamesheavey 0:92b180c8d407 5 #define _FFCONF 64180 /* Revision ID */
jamesheavey 0:92b180c8d407 6
jamesheavey 0:92b180c8d407 7 #define FFS_DBG 0
jamesheavey 0:92b180c8d407 8
jamesheavey 0:92b180c8d407 9 /*---------------------------------------------------------------------------/
jamesheavey 0:92b180c8d407 10 / Function Configurations
jamesheavey 0:92b180c8d407 11 /---------------------------------------------------------------------------*/
jamesheavey 0:92b180c8d407 12
jamesheavey 0:92b180c8d407 13 #define _FS_READONLY 0
jamesheavey 0:92b180c8d407 14 /* This option switches read-only configuration. (0:Read/Write or 1:Read-only)
jamesheavey 0:92b180c8d407 15 / Read-only configuration removes writing API functions, f_write(), f_sync(),
jamesheavey 0:92b180c8d407 16 / f_unlink(), f_mkdir(), f_chmod(), f_rename(), f_truncate(), f_getfree()
jamesheavey 0:92b180c8d407 17 / and optional writing functions as well. */
jamesheavey 0:92b180c8d407 18
jamesheavey 0:92b180c8d407 19
jamesheavey 0:92b180c8d407 20 #define _FS_MINIMIZE 0
jamesheavey 0:92b180c8d407 21 /* This option defines minimization level to remove some basic API functions.
jamesheavey 0:92b180c8d407 22 /
jamesheavey 0:92b180c8d407 23 / 0: All basic functions are enabled.
jamesheavey 0:92b180c8d407 24 / 1: f_stat(), f_getfree(), f_unlink(), f_mkdir(), f_chmod(), f_utime(),
jamesheavey 0:92b180c8d407 25 / f_truncate() and f_rename() function are removed.
jamesheavey 0:92b180c8d407 26 / 2: f_opendir(), f_readdir() and f_closedir() are removed in addition to 1.
jamesheavey 0:92b180c8d407 27 / 3: f_lseek() function is removed in addition to 2. */
jamesheavey 0:92b180c8d407 28
jamesheavey 0:92b180c8d407 29
jamesheavey 0:92b180c8d407 30 #define _USE_STRFUNC 0
jamesheavey 0:92b180c8d407 31 /* This option switches string functions, f_gets(), f_putc(), f_puts() and
jamesheavey 0:92b180c8d407 32 / f_printf().
jamesheavey 0:92b180c8d407 33 /
jamesheavey 0:92b180c8d407 34 / 0: Disable string functions.
jamesheavey 0:92b180c8d407 35 / 1: Enable without LF-CRLF conversion.
jamesheavey 0:92b180c8d407 36 / 2: Enable with LF-CRLF conversion. */
jamesheavey 0:92b180c8d407 37
jamesheavey 0:92b180c8d407 38
jamesheavey 0:92b180c8d407 39 #define _USE_FIND 0
jamesheavey 0:92b180c8d407 40 /* This option switches filtered directory read feature and related functions,
jamesheavey 0:92b180c8d407 41 / f_findfirst() and f_findnext(). (0:Disable or 1:Enable) */
jamesheavey 0:92b180c8d407 42
jamesheavey 0:92b180c8d407 43
jamesheavey 0:92b180c8d407 44 #define _USE_MKFS 1
jamesheavey 0:92b180c8d407 45 /* This option switches f_mkfs() function. (0:Disable or 1:Enable) */
jamesheavey 0:92b180c8d407 46
jamesheavey 0:92b180c8d407 47
jamesheavey 0:92b180c8d407 48 #define _USE_FASTSEEK 0
jamesheavey 0:92b180c8d407 49 /* This option switches fast seek feature. (0:Disable or 1:Enable) */
jamesheavey 0:92b180c8d407 50
jamesheavey 0:92b180c8d407 51
jamesheavey 0:92b180c8d407 52 #define _USE_LABEL 0
jamesheavey 0:92b180c8d407 53 /* This option switches volume label functions, f_getlabel() and f_setlabel().
jamesheavey 0:92b180c8d407 54 / (0:Disable or 1:Enable) */
jamesheavey 0:92b180c8d407 55
jamesheavey 0:92b180c8d407 56
jamesheavey 0:92b180c8d407 57 #define _USE_FORWARD 0
jamesheavey 0:92b180c8d407 58 /* This option switches f_forward() function. (0:Disable or 1:Enable)
jamesheavey 0:92b180c8d407 59 / To enable it, also _FS_TINY need to be set to 1. */
jamesheavey 0:92b180c8d407 60
jamesheavey 0:92b180c8d407 61
jamesheavey 0:92b180c8d407 62 /*---------------------------------------------------------------------------/
jamesheavey 0:92b180c8d407 63 / Locale and Namespace Configurations
jamesheavey 0:92b180c8d407 64 /---------------------------------------------------------------------------*/
jamesheavey 0:92b180c8d407 65
jamesheavey 0:92b180c8d407 66 #define _CODE_PAGE 850
jamesheavey 0:92b180c8d407 67 /* This option specifies the OEM code page to be used on the target system.
jamesheavey 0:92b180c8d407 68 / Incorrect setting of the code page can cause a file open failure.
jamesheavey 0:92b180c8d407 69 /
jamesheavey 0:92b180c8d407 70 / 1 - ASCII (No extended character. Non-LFN cfg. only)
jamesheavey 0:92b180c8d407 71 / 437 - U.S.
jamesheavey 0:92b180c8d407 72 / 720 - Arabic
jamesheavey 0:92b180c8d407 73 / 737 - Greek
jamesheavey 0:92b180c8d407 74 / 771 - KBL
jamesheavey 0:92b180c8d407 75 / 775 - Baltic
jamesheavey 0:92b180c8d407 76 / 850 - Latin 1
jamesheavey 0:92b180c8d407 77 / 852 - Latin 2
jamesheavey 0:92b180c8d407 78 / 855 - Cyrillic
jamesheavey 0:92b180c8d407 79 / 857 - Turkish
jamesheavey 0:92b180c8d407 80 / 860 - Portuguese
jamesheavey 0:92b180c8d407 81 / 861 - Icelandic
jamesheavey 0:92b180c8d407 82 / 862 - Hebrew
jamesheavey 0:92b180c8d407 83 / 863 - Canadian French
jamesheavey 0:92b180c8d407 84 / 864 - Arabic
jamesheavey 0:92b180c8d407 85 / 865 - Nordic
jamesheavey 0:92b180c8d407 86 / 866 - Russian
jamesheavey 0:92b180c8d407 87 / 869 - Greek 2
jamesheavey 0:92b180c8d407 88 / 932 - Japanese (DBCS)
jamesheavey 0:92b180c8d407 89 / 936 - Simplified Chinese (DBCS)
jamesheavey 0:92b180c8d407 90 / 949 - Korean (DBCS)
jamesheavey 0:92b180c8d407 91 / 950 - Traditional Chinese (DBCS)
jamesheavey 0:92b180c8d407 92 */
jamesheavey 0:92b180c8d407 93
jamesheavey 0:92b180c8d407 94
jamesheavey 0:92b180c8d407 95 #define _USE_LFN 1
jamesheavey 0:92b180c8d407 96 #define _MAX_LFN 255
jamesheavey 0:92b180c8d407 97 /* The _USE_LFN option switches the LFN feature.
jamesheavey 0:92b180c8d407 98 /
jamesheavey 0:92b180c8d407 99 / 0: Disable LFN feature. _MAX_LFN has no effect.
jamesheavey 0:92b180c8d407 100 / 1: Enable LFN with static working buffer on the BSS. Always NOT thread-safe.
jamesheavey 0:92b180c8d407 101 / 2: Enable LFN with dynamic working buffer on the STACK.
jamesheavey 0:92b180c8d407 102 / 3: Enable LFN with dynamic working buffer on the HEAP.
jamesheavey 0:92b180c8d407 103 /
jamesheavey 0:92b180c8d407 104 / When enable the LFN feature, Unicode handling functions (option/unicode.c) must
jamesheavey 0:92b180c8d407 105 / be added to the project. The LFN working buffer occupies (_MAX_LFN + 1) * 2 bytes.
jamesheavey 0:92b180c8d407 106 / When use stack for the working buffer, take care on stack overflow. When use heap
jamesheavey 0:92b180c8d407 107 / memory for the working buffer, memory management functions, ff_memalloc() and
jamesheavey 0:92b180c8d407 108 / ff_memfree(), must be added to the project. */
jamesheavey 0:92b180c8d407 109
jamesheavey 0:92b180c8d407 110
jamesheavey 0:92b180c8d407 111 #define _LFN_UNICODE 0
jamesheavey 0:92b180c8d407 112 /* This option switches character encoding on the API. (0:ANSI/OEM or 1:Unicode)
jamesheavey 0:92b180c8d407 113 / To use Unicode string for the path name, enable LFN feature and set _LFN_UNICODE
jamesheavey 0:92b180c8d407 114 / to 1. This option also affects behavior of string I/O functions. */
jamesheavey 0:92b180c8d407 115
jamesheavey 0:92b180c8d407 116
jamesheavey 0:92b180c8d407 117 #define _STRF_ENCODE 3
jamesheavey 0:92b180c8d407 118 /* When _LFN_UNICODE is 1, this option selects the character encoding on the file to
jamesheavey 0:92b180c8d407 119 / be read/written via string I/O functions, f_gets(), f_putc(), f_puts and f_printf().
jamesheavey 0:92b180c8d407 120 /
jamesheavey 0:92b180c8d407 121 / 0: ANSI/OEM
jamesheavey 0:92b180c8d407 122 / 1: UTF-16LE
jamesheavey 0:92b180c8d407 123 / 2: UTF-16BE
jamesheavey 0:92b180c8d407 124 / 3: UTF-8
jamesheavey 0:92b180c8d407 125 /
jamesheavey 0:92b180c8d407 126 / When _LFN_UNICODE is 0, this option has no effect. */
jamesheavey 0:92b180c8d407 127
jamesheavey 0:92b180c8d407 128
jamesheavey 0:92b180c8d407 129 #define _FS_RPATH 0
jamesheavey 0:92b180c8d407 130 /* This option configures relative path feature.
jamesheavey 0:92b180c8d407 131 /
jamesheavey 0:92b180c8d407 132 / 0: Disable relative path feature and remove related functions.
jamesheavey 0:92b180c8d407 133 / 1: Enable relative path feature. f_chdir() and f_chdrive() are available.
jamesheavey 0:92b180c8d407 134 / 2: f_getcwd() function is available in addition to 1.
jamesheavey 0:92b180c8d407 135 /
jamesheavey 0:92b180c8d407 136 / Note that directory items read via f_readdir() are affected by this option. */
jamesheavey 0:92b180c8d407 137
jamesheavey 0:92b180c8d407 138
jamesheavey 0:92b180c8d407 139 /*---------------------------------------------------------------------------/
jamesheavey 0:92b180c8d407 140 / Drive/Volume Configurations
jamesheavey 0:92b180c8d407 141 /---------------------------------------------------------------------------*/
jamesheavey 0:92b180c8d407 142
jamesheavey 0:92b180c8d407 143 #define _VOLUMES 1
jamesheavey 0:92b180c8d407 144 /* Number of volumes (logical drives) to be used. */
jamesheavey 0:92b180c8d407 145
jamesheavey 0:92b180c8d407 146
jamesheavey 0:92b180c8d407 147 #define _STR_VOLUME_ID 0
jamesheavey 0:92b180c8d407 148 #define _VOLUME_STRS "RAM","NAND","CF","SD1","SD2","USB1","USB2","USB3"
jamesheavey 0:92b180c8d407 149 /* _STR_VOLUME_ID option switches string volume ID feature.
jamesheavey 0:92b180c8d407 150 / When _STR_VOLUME_ID is set to 1, also pre-defined strings can be used as drive
jamesheavey 0:92b180c8d407 151 / number in the path name. _VOLUME_STRS defines the drive ID strings for each
jamesheavey 0:92b180c8d407 152 / logical drives. Number of items must be equal to _VOLUMES. Valid characters for
jamesheavey 0:92b180c8d407 153 / the drive ID strings are: A-Z and 0-9. */
jamesheavey 0:92b180c8d407 154
jamesheavey 0:92b180c8d407 155
jamesheavey 0:92b180c8d407 156 #define _MULTI_PARTITION 0
jamesheavey 0:92b180c8d407 157 /* This option switches multi-partition feature. By default (0), each logical drive
jamesheavey 0:92b180c8d407 158 / number is bound to the same physical drive number and only an FAT volume found on
jamesheavey 0:92b180c8d407 159 / the physical drive will be mounted. When multi-partition feature is enabled (1),
jamesheavey 0:92b180c8d407 160 / each logical drive number is bound to arbitrary physical drive and partition
jamesheavey 0:92b180c8d407 161 / listed in the VolToPart[]. Also f_fdisk() funciton will be available. */
jamesheavey 0:92b180c8d407 162
jamesheavey 0:92b180c8d407 163
jamesheavey 0:92b180c8d407 164 #define _MIN_SS 512
jamesheavey 0:92b180c8d407 165 #define _MAX_SS 512
jamesheavey 0:92b180c8d407 166 /* These options configure the range of sector size to be supported. (512, 1024,
jamesheavey 0:92b180c8d407 167 / 2048 or 4096) Always set both 512 for most systems, all type of memory cards and
jamesheavey 0:92b180c8d407 168 / harddisk. But a larger value may be required for on-board flash memory and some
jamesheavey 0:92b180c8d407 169 / type of optical media. When _MAX_SS is larger than _MIN_SS, FatFs is configured
jamesheavey 0:92b180c8d407 170 / to variable sector size and GET_SECTOR_SIZE command must be implemented to the
jamesheavey 0:92b180c8d407 171 / disk_ioctl() function. */
jamesheavey 0:92b180c8d407 172
jamesheavey 0:92b180c8d407 173
jamesheavey 0:92b180c8d407 174 #define _USE_TRIM 0
jamesheavey 0:92b180c8d407 175 /* This option switches ATA-TRIM feature. (0:Disable or 1:Enable)
jamesheavey 0:92b180c8d407 176 / To enable Trim feature, also CTRL_TRIM command should be implemented to the
jamesheavey 0:92b180c8d407 177 / disk_ioctl() function. */
jamesheavey 0:92b180c8d407 178
jamesheavey 0:92b180c8d407 179
jamesheavey 0:92b180c8d407 180 #define _FS_NOFSINFO 0
jamesheavey 0:92b180c8d407 181 /* If you need to know correct free space on the FAT32 volume, set bit 0 of this
jamesheavey 0:92b180c8d407 182 / option, and f_getfree() function at first time after volume mount will force
jamesheavey 0:92b180c8d407 183 / a full FAT scan. Bit 1 controls the use of last allocated cluster number.
jamesheavey 0:92b180c8d407 184 /
jamesheavey 0:92b180c8d407 185 / bit0=0: Use free cluster count in the FSINFO if available.
jamesheavey 0:92b180c8d407 186 / bit0=1: Do not trust free cluster count in the FSINFO.
jamesheavey 0:92b180c8d407 187 / bit1=0: Use last allocated cluster number in the FSINFO if available.
jamesheavey 0:92b180c8d407 188 / bit1=1: Do not trust last allocated cluster number in the FSINFO.
jamesheavey 0:92b180c8d407 189 */
jamesheavey 0:92b180c8d407 190
jamesheavey 0:92b180c8d407 191
jamesheavey 0:92b180c8d407 192
jamesheavey 0:92b180c8d407 193 /*---------------------------------------------------------------------------/
jamesheavey 0:92b180c8d407 194 / System Configurations
jamesheavey 0:92b180c8d407 195 /---------------------------------------------------------------------------*/
jamesheavey 0:92b180c8d407 196
jamesheavey 0:92b180c8d407 197 #define _FS_TINY 0
jamesheavey 0:92b180c8d407 198 /* This option switches tiny buffer configuration. (0:Normal or 1:Tiny)
jamesheavey 0:92b180c8d407 199 / At the tiny configuration, size of the file object (FIL) is reduced _MAX_SS
jamesheavey 0:92b180c8d407 200 / bytes. Instead of private sector buffer eliminated from the file object,
jamesheavey 0:92b180c8d407 201 / common sector buffer in the file system object (FATFS) is used for the file
jamesheavey 0:92b180c8d407 202 / data transfer. */
jamesheavey 0:92b180c8d407 203
jamesheavey 0:92b180c8d407 204
jamesheavey 0:92b180c8d407 205 #define _FS_NORTC 0
jamesheavey 0:92b180c8d407 206 #define _NORTC_MON 1
jamesheavey 0:92b180c8d407 207 #define _NORTC_MDAY 1
jamesheavey 0:92b180c8d407 208 #define _NORTC_YEAR 2015
jamesheavey 0:92b180c8d407 209 /* The _FS_NORTC option switches timestamp feature. If the system does not have
jamesheavey 0:92b180c8d407 210 / an RTC function or valid timestamp is not needed, set _FS_NORTC to 1 to disable
jamesheavey 0:92b180c8d407 211 / the timestamp feature. All objects modified by FatFs will have a fixed timestamp
jamesheavey 0:92b180c8d407 212 / defined by _NORTC_MON, _NORTC_MDAY and _NORTC_YEAR.
jamesheavey 0:92b180c8d407 213 / When timestamp feature is enabled (_FS_NORTC == 0), get_fattime() function need
jamesheavey 0:92b180c8d407 214 / to be added to the project to read current time form RTC. _NORTC_MON,
jamesheavey 0:92b180c8d407 215 / _NORTC_MDAY and _NORTC_YEAR have no effect.
jamesheavey 0:92b180c8d407 216 / These options have no effect at read-only configuration (_FS_READONLY == 1). */
jamesheavey 0:92b180c8d407 217
jamesheavey 0:92b180c8d407 218
jamesheavey 0:92b180c8d407 219 #define _FS_LOCK 0
jamesheavey 0:92b180c8d407 220 /* The _FS_LOCK option switches file lock feature to control duplicated file open
jamesheavey 0:92b180c8d407 221 / and illegal operation to open objects. This option must be 0 when _FS_READONLY
jamesheavey 0:92b180c8d407 222 / is 1.
jamesheavey 0:92b180c8d407 223 /
jamesheavey 0:92b180c8d407 224 / 0: Disable file lock feature. To avoid volume corruption, application program
jamesheavey 0:92b180c8d407 225 / should avoid illegal open, remove and rename to the open objects.
jamesheavey 0:92b180c8d407 226 / >0: Enable file lock feature. The value defines how many files/sub-directories
jamesheavey 0:92b180c8d407 227 / can be opened simultaneously under file lock control. Note that the file
jamesheavey 0:92b180c8d407 228 / lock feature is independent of re-entrancy. */
jamesheavey 0:92b180c8d407 229
jamesheavey 0:92b180c8d407 230
jamesheavey 0:92b180c8d407 231 #define _FS_REENTRANT 0
jamesheavey 0:92b180c8d407 232 #define _FS_TIMEOUT 1000
jamesheavey 0:92b180c8d407 233 #define _SYNC_t HANDLE
jamesheavey 0:92b180c8d407 234 /* The _FS_REENTRANT option switches the re-entrancy (thread safe) of the FatFs
jamesheavey 0:92b180c8d407 235 / module itself. Note that regardless of this option, file access to different
jamesheavey 0:92b180c8d407 236 / volume is always re-entrant and volume control functions, f_mount(), f_mkfs()
jamesheavey 0:92b180c8d407 237 / and f_fdisk() function, are always not re-entrant. Only file/directory access
jamesheavey 0:92b180c8d407 238 / to the same volume is under control of this feature.
jamesheavey 0:92b180c8d407 239 /
jamesheavey 0:92b180c8d407 240 / 0: Disable re-entrancy. _FS_TIMEOUT and _SYNC_t have no effect.
jamesheavey 0:92b180c8d407 241 / 1: Enable re-entrancy. Also user provided synchronization handlers,
jamesheavey 0:92b180c8d407 242 / ff_req_grant(), ff_rel_grant(), ff_del_syncobj() and ff_cre_syncobj()
jamesheavey 0:92b180c8d407 243 / function, must be added to the project. Samples are available in
jamesheavey 0:92b180c8d407 244 / option/syscall.c.
jamesheavey 0:92b180c8d407 245 /
jamesheavey 0:92b180c8d407 246 / The _FS_TIMEOUT defines timeout period in unit of time tick.
jamesheavey 0:92b180c8d407 247 / The _SYNC_t defines O/S dependent sync object type. e.g. HANDLE, ID, OS_EVENT*,
jamesheavey 0:92b180c8d407 248 / SemaphoreHandle_t and etc.. A header file for O/S definitions needs to be
jamesheavey 0:92b180c8d407 249 / included somewhere in the scope of ff.c. */
jamesheavey 0:92b180c8d407 250
jamesheavey 0:92b180c8d407 251
jamesheavey 0:92b180c8d407 252 #define _WORD_ACCESS 0
jamesheavey 0:92b180c8d407 253 /* The _WORD_ACCESS option is an only platform dependent option. It defines
jamesheavey 0:92b180c8d407 254 / which access method is used to the word data on the FAT volume.
jamesheavey 0:92b180c8d407 255 /
jamesheavey 0:92b180c8d407 256 / 0: Byte-by-byte access. Always compatible with all platforms.
jamesheavey 0:92b180c8d407 257 / 1: Word access. Do not choose this unless under both the following conditions.
jamesheavey 0:92b180c8d407 258 /
jamesheavey 0:92b180c8d407 259 / * Address misaligned memory access is always allowed to ALL instructions.
jamesheavey 0:92b180c8d407 260 / * Byte order on the memory is little-endian.
jamesheavey 0:92b180c8d407 261 /
jamesheavey 0:92b180c8d407 262 / If it is the case, _WORD_ACCESS can also be set to 1 to reduce code size.
jamesheavey 0:92b180c8d407 263 / Following table shows allowable settings of some type of processors.
jamesheavey 0:92b180c8d407 264 /
jamesheavey 0:92b180c8d407 265 / ARM7TDMI 0 *2 ColdFire 0 *1 V850E 0 *2
jamesheavey 0:92b180c8d407 266 / Cortex-M3 0 *3 Z80 0/1 V850ES 0/1
jamesheavey 0:92b180c8d407 267 / Cortex-M0 0 *2 x86 0/1 TLCS-870 0/1
jamesheavey 0:92b180c8d407 268 / AVR 0/1 RX600(LE) 0/1 TLCS-900 0/1
jamesheavey 0:92b180c8d407 269 / AVR32 0 *1 RL78 0 *2 R32C 0 *2
jamesheavey 0:92b180c8d407 270 / PIC18 0/1 SH-2 0 *1 M16C 0/1
jamesheavey 0:92b180c8d407 271 / PIC24 0 *2 H8S 0 *1 MSP430 0 *2
jamesheavey 0:92b180c8d407 272 / PIC32 0 *1 H8/300H 0 *1 8051 0/1
jamesheavey 0:92b180c8d407 273 /
jamesheavey 0:92b180c8d407 274 / *1:Big-endian.
jamesheavey 0:92b180c8d407 275 / *2:Unaligned memory access is not supported.
jamesheavey 0:92b180c8d407 276 / *3:Some compilers generate LDM/STM for mem_cpy function.
jamesheavey 0:92b180c8d407 277 */
jamesheavey 0:92b180c8d407 278
jamesheavey 0:92b180c8d407 279 #define FLUSH_ON_NEW_CLUSTER 0 /* Sync the file on every new cluster */
jamesheavey 0:92b180c8d407 280 #define FLUSH_ON_NEW_SECTOR 1 /* Sync the file on every new sector */
jamesheavey 0:92b180c8d407 281 /* Only one of these two defines needs to be set to 1. If both are set to 0
jamesheavey 0:92b180c8d407 282 the file is only sync when closed.
jamesheavey 0:92b180c8d407 283 Clusters are group of sectors (eg: 8 sectors). Flushing on new cluster means
jamesheavey 0:92b180c8d407 284 it would be less often than flushing on new sector. Sectors are generally
jamesheavey 0:92b180c8d407 285 512 Bytes long. */