1 /*--------------------------------------------------------------------------/
2 / FatFs - FAT file system module include file R0.06 (C)ChaN, 2008
3 /---------------------------------------------------------------------------/
4 / FatFs module is an experimenal project to implement FAT file system to
5 / cheap microcontrollers. This is a free software and is opened for education,
6 / research and development under license policy of following trems.
8 / Copyright (C) 2008, ChaN, all right reserved.
10 / * The FatFs module is a free software and there is no warranty.
11 / * You can use, modify and/or redistribute it for personal, non-profit or
12 / commercial use without any restriction under your responsibility.
13 / * Redistributions of source code must retain the above copyright notice.
15 /---------------------------------------------------------------------------*/
18 /* The _MCU_ENDIAN defines which access method is used to the FAT structure.
19 / 1: Enable word access.
20 / 2: Disable word access and use byte-by-byte access instead.
21 / When the architectural byte order of the MCU is big-endian and/or address
22 / miss-aligned access results incorrect behavior, the _MCU_ENDIAN must be set to 2.
23 / If it is not the case, it can also be set to 1 for good code efficiency. */
25 #define _FS_READONLY 0
26 /* Setting _FS_READONLY to 1 defines read only configuration. This removes
27 / writing functions, f_write, f_sync, f_unlink, f_mkdir, f_chmod, f_rename,
28 / f_truncate and useless f_getfree. */
30 #define _FS_MINIMIZE 0
31 /* The _FS_MINIMIZE option defines minimization level to remove some functions.
33 / 1: f_stat, f_getfree, f_unlink, f_mkdir, f_chmod, f_truncate and f_rename are removed.
34 / 2: f_opendir and f_readdir are removed in addition to level 1.
35 / 3: f_lseek is removed in addition to level 2. */
37 #define _USE_STRFUNC 0
38 /* To enable string functions, set _USE_STRFUNC to 1 or 2. */
41 /* When _USE_MKFS is set to 1 and _FS_READONLY is set to 0, f_mkfs function is
45 /* Number of logical drives to be used. This affects the size of internal table. */
47 #define _MULTI_PARTITION 0
48 /* When _MULTI_PARTITION is set to 0, each logical drive is bound to same
49 / physical drive number and can mount only 1st primaly partition. When it is
50 / set to 1, each logical drive can mount a partition listed in Drives[]. */
53 /* To enable FSInfo support on FAT32 volume, set _USE_FSINFO to 1. */
56 /* When _USE_SJIS is set to 1, Shift-JIS code transparency is enabled, otherwise
57 / only US-ASCII(7bit) code can be accepted as file/directory name. */
60 /* When _USE_NTFLAG is set to 1, upper/lower case of the file name is preserved.
61 / Note that the files are always accessed in case insensitive. */
64 /* To enable FAT32 support in addition of FAT12/16, set _FAT32 to 1. For tinyfat*/