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


inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:04