FAT Configuration
Configuration constants can be used to enable/disable features within the FAT file system driver.
FS_FAT_CFG_LFN_EN
FS_FAT_CFG_LFN_EN
is used to control whether long file names (LFNs) are supported. When DEF_DISABLED
, all file names must be valid 8.3 short file names.
FS_FAT_CFG_FAT12_EN
FS_FAT_CFG_FAT12_EN
is used to control whether FAT12 is supported. When DEF_DISABLED
, FAT12 volumes can not be opened, nor can a device be formatted as a FAT12 volume.
FS_FAT_CFG_FAT16_EN
FS_FAT_CFG_FAT16_EN
is used to control whether FAT16 is supported. When DEF_DISABLED
, FAT16 volumes can not be opened, nor can a device be formatted as a FAT16 volume.
FS_FAT_CFG_FAT32_EN
FS_FAT_CFG_FAT32_EN
is used to control whether FAT32 is supported. When DEF_DISABLED
, FAT32 volumes can not be opened, nor can a device be formatted as a FAT32 volume.
FS_FAT_CFG_JOURNAL_EN
FS_FAT_CFG_JOURNAL_EN
selects whether journaling functions will be present. When DEF_ENABLED
, journaling functions are present; when DEF_DISABLED
, journaling functions are not present. If disabled, the functions in the table below will not be available.
Function | File |
---|---|
FS_FAT_JournalOpen() | fs_fat_journal.c/.h |
FS_FAT_JournalClose() | fs_fat_journal.c/.h |
FS_FAT_JournalStart() | fs_fat_journal.c/.h |
FS_FAT_JournalEnd() | fs_fat_journal.c/.h |
These functions are not included if FS_FAT_CFG_JOURNAL_EN
is DEF_DISABLED
.
FS_FAT_CFG_VOL_CHK_EN
FS_FAT_CFG_VOL_CHK_EN
selects whether volume check is supported. When DEF_ENABLED
, volume check is supported; when DEF_DISABLED
, the function FS_FAT_VolChk()
will not be available.
FS_FAT_CFG_VOL_CHK_MAX_LEVELS
FS_FAT_CFG_VOL_CHK_MAX_LEVELS
specifies the maximum number of directory levels that will be checked by the volume check function. Each level requires an additional 12 bytes stack space.