4 * This file is part of BeRTOS.
6 * Bertos is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 * As a special exception, you may use this file as part of a free software
21 * library without restriction. Specifically, if other files instantiate
22 * templates or use macros or inline functions from this file, or you compile
23 * this file and link it with other files to produce an executable, this
24 * file does not by itself cause the resulting executable to be covered by
25 * the GNU General Public License. This exception does not however
26 * invalidate any other reasons why the executable file might be covered by
27 * the GNU General Public License.
29 * Copyright 2009 Develer S.r.l. (http://www.develer.com/)
30 * All Rights Reserved.
33 * \brief Configuration file for Fat module.
36 * \author Luca Ottaviano <lottaviano@develer.com>
37 * \author Francesco Sacchi <batt@develer.com>
44 * Use word alignment to access FAT structure.
45 * $WIZ$ type = "boolean"
47 #define CONFIG_FAT_WORD_ACCESS 0
48 #define _WORD_ACCESS CONFIG_FAT_WORD_ACCESS
51 * Enable read functions only.
52 * $WIZ$ type = "boolean"
54 #define CONFIG_FAT_FS_READONLY 0
55 #define _FS_READONLY CONFIG_FAT_FS_READONLY
58 * Minimization level to remove some functions.
59 * $WIZ$ type = "int"; min = 0; max = 3
61 #define CONFIG_FAT_FS_MINIMIZE 0
62 #define _FS_MINIMIZE CONFIG_FAT_FS_MINIMIZE
65 * If enabled, this reduces memory consumption 512 bytes each file object by using a shared buffer.
66 * $WIZ$ type = "boolean"
68 #define CONFIG_FAT_FS_TINY 1
69 #define _FS_TINY CONFIG_FAT_FS_TINY
72 * To enable string functions, set _USE_STRFUNC to 1 or 2.
74 * $WIZ$ supports = "False"
76 #define CONFIG_FAT_USE_STRFUNC 0
77 #define _USE_STRFUNC CONFIG_FAT_USE_STRFUNC
80 * Enable f_mkfs function. Requires CONFIG_FAT_FS_READONLY = 0.
81 * $WIZ$ type = "boolean"
83 #define CONFIG_FAT_USE_MKFS 0
84 #define _USE_MKFS (CONFIG_FAT_USE_MKFS && !CONFIG_FAT_FS_READONLY)
87 * Enable f_forward function. Requires CONFIG_FAT_FS_TINY.
88 * $WIZ$ type = "boolean"
90 #define CONFIG_FAT_USE_FORWARD 0
91 #define _USE_FORWARD (CONFIG_FAT_USE_FORWARD && CONFIG_FAT_FS_TINY)
94 * Number of volumes (logical drives) to be used.
95 * $WIZ$ type = "int"; min = 1; max = 255
97 #define CONFIG_FAT_DRIVES 1
98 #define _DRIVES CONFIG_FAT_DRIVES
101 * Maximum sector size to be handled. (512/1024/2048/4096).
102 * 512 for memory card and hard disk, 1024 for floppy disk, 2048 for MO disk
103 * $WIZ$ type = "int"; min = 512; max = 4096
105 #define CONFIG_FAT_MAX_SS 512
106 #define _MAX_SS CONFIG_FAT_MAX_SS
109 * When _MULTI_PARTITION is set to 0, each volume is bound to the same physical
110 * drive number and can mount only first primaly partition. When it is set to 1,
111 * each volume is tied to the partitions listed in Drives[].
112 * $WIZ$ type = "boolean"
113 * $WIZ$ supports = "False"
115 #define CONFIG_FAT_MULTI_PARTITION 0
116 #define _MULTI_PARTITION CONFIG_FAT_MULTI_PARTITION
119 * Specifies the OEM code page to be used on the target system.
122 #define CONFIG_FAT_CODE_PAGE 850
123 #define _CODE_PAGE CONFIG_FAT_CODE_PAGE
126 * Support for long filenames. Enable only if you have a valid Microsoft license.
127 * $WIZ$ type = "boolean"
129 #define CONFIG_FAT_USE_LFN 0
130 #define _USE_LFN CONFIG_FAT_USE_LFN
133 * Maximum Long File Name length to handle.
134 * $WIZ$ type = "int"; min = 8; max = 255
136 #define CONFIG_FAT_MAX_LFN 255
137 #define _MAX_LFN CONFIG_FAT_MAX_LFN
139 #endif /* CFG_FAT_H */