BeRTOS
Defines
cfg_fat.h File Reference

Configuration file for Fat module. More...

Go to the source code of this file.

Defines

#define FAT_LOG_LEVEL   LOG_LVL_ERR
 Module logging level.
#define FAT_LOG_FORMAT   LOG_FMT_VERBOSE
 Module logging format.
#define CONFIG_FAT_WORD_ACCESS   0
 Use word alignment to access FAT structure.
#define CONFIG_FAT_FS_READONLY   0
 Enable read functions only.
#define CONFIG_FAT_FS_MINIMIZE   0
 Minimization level to remove some functions.
#define CONFIG_FAT_FS_TINY   1
 If enabled, this reduces memory consumption 512 bytes each file object by using a shared buffer.
#define CONFIG_FAT_USE_STRFUNC   0
 To enable string functions, set _USE_STRFUNC to 1 or 2.
#define CONFIG_FAT_USE_MKFS   0
 Enable f_mkfs function.
#define CONFIG_FAT_USE_FORWARD   0
 Enable f_forward function.
#define CONFIG_FAT_DRIVES   1
 Number of volumes (logical drives) to be used.
#define CONFIG_FAT_MAX_SS   512
 Maximum sector size to be handled.
#define CONFIG_FAT_MULTI_PARTITION   0
 When _MULTI_PARTITION is set to 0, each volume is bound to the same physical drive number and can mount only first primaly partition.
#define CONFIG_FAT_CODE_PAGE   850
 Specifies the OEM code page to be used on the target system.
#define CONFIG_FAT_USE_LFN   0
 Support for long filenames.
#define CONFIG_FAT_MAX_LFN   255
 Maximum Long File Name length to handle.

Detailed Description

Configuration file for Fat module.

Author:
Luca Ottaviano <lottaviano@develer.com>
Francesco Sacchi <batt@develer.com>

Definition in file cfg_fat.h.


Define Documentation

#define CONFIG_FAT_MAX_SS   512

Maximum sector size to be handled.

(512/1024/2048/4096). 512 for memory card and hard disk, 1024 for floppy disk, 2048 for MO disk

Definition at line 122 of file cfg_fat.h.

#define CONFIG_FAT_MULTI_PARTITION   0

When _MULTI_PARTITION is set to 0, each volume is bound to the same physical drive number and can mount only first primaly partition.

When it is set to 1, each volume is tied to the partitions listed in Drives[].

Definition at line 132 of file cfg_fat.h.

#define CONFIG_FAT_USE_FORWARD   0

Enable f_forward function.

Requires CONFIG_FAT_FS_TINY.

Definition at line 107 of file cfg_fat.h.

#define CONFIG_FAT_USE_LFN   0

Support for long filenames.

Enable only if you have a valid Microsoft license.

Definition at line 146 of file cfg_fat.h.

#define CONFIG_FAT_USE_MKFS   0

Enable f_mkfs function.

Requires CONFIG_FAT_FS_READONLY = 0.

Definition at line 100 of file cfg_fat.h.