SNAKE GAME

Dependencies:   mbed wave_player 4DGL-uLCD-SE MMA8452

Committer:
congvu
Date:
Wed Nov 25 04:25:25 2020 +0000
Revision:
0:24041b847eb5
ECE2035 SNAKE GAME;

Who changed what in which revision?

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