rtos sd encoder systems

Dependencies:   mbed

Committer:
eembed
Date:
Fri Aug 30 11:55:47 2019 +0000
Revision:
3:a921792d9913
Parent:
0:5459cdde6298
commit before edit; ~JKD;

Who changed what in which revision?

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