File System Configuration

Core file system modules may be selectively disabled.

FS_CFG_BUILD

FS_CFG_BUILD selects the file system build. Should always be set to FS_BUILD_FULL in this release.

FS_CFG_SYS_DRV_SEL

FS_CFG_SYS_DRV_SEL selects which file system driver(s) will be included. Currently, there is only one option. When FS_SYS_DRV_SEL_FAT, the FAT system driver will be included.

FS_CFG_CACHE_EN

FS_CFG_CACHE_EN enables (when set to DEF_ENABLED) or disables (when set to DEF_DISABLED) code generation of volume cache functions.

Cache function exclusion
FunctionFile
FSVol_CacheAssign()fs_vol.c
FSVol_CacheFlush()fs_vol.c
FSVol_CacheInvalidate()fs_vol.c

These functions are not included if FS_CFG_CACHE_EN is DEF_DISABLED.

FS_CFG_BUF_ALIGN_OCTETS

FS_CFG_BUF_ALIGN_OCTETS configures the minimum alignment of the internal buffers in octets. This should be set to the maximum alignment required by the any of the CPU, system buses and, if relevant, the peripherals and DMA controller involved in the file system operations. When no minimum alignment is required FS_CFG_BUF_ALIGN_OCTETS should generally be set to the platform natural alignment for performance reasons.

FS_CFG_API_EN

FS_CFG_API_EN enables (when set to DEF_ENABLED) or disables (when set to DEF_DISABLED) code generation of the POSIX API functions. This API includes functions like fs_fopen() or fs_opendir() which mirror standard POSIX functions like fopen() or opendir().

FS_CFG_DIR_EN

FS_CFG_DIR_EN enables (when set to DEF_ENABLED) or disables (when set to DEF_DISABLED) code generation of directory access functions. When disabled, the functions in the following table will not be available.

Directory function exclusion
Funciton File
fs_opendir()fs_api.c
fs_closedir()fs_api.c
fs_readdir_r()fs_api.c
FSDir_Open()fs_dir.c
FSDir_Close()fs_dir.c
FSDir_Rd()fs_dir.c

These functions are not included if FS_CFG_DIR_EN is DEF_DISABLED.