Mbed project to control a hoverboard

Dependencies:   mbed wave_player Servo 4DGL-uLCD-SE LSM9DS1_Library_cal HC_SR04_Ultrasonic_Library

Committer:
msafwan3
Date:
Wed Apr 29 22:42:25 2020 +0000
Revision:
3:bf0c46975248
Parent:
0:808403b99108
removed rtos

Who changed what in which revision?

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