annotate ffconf.h @ 6:9d538f674ff0

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