menuconfig LPKG_USING_DFS bool "DFS: device virtual file system for baremetal mode" depends on !CONFIG_KERNEL_RTTHREAD default n help The device file system is a light weight virtual file system. if LPKG_USING_DFS config DFS_USING_POSIX bool "Using posix-like functions, open/read/write/close" default y config DFS_FILESYSTEMS_MAX int "The maximal number of mounted file system" default 4 config DFS_FILESYSTEM_TYPES_MAX int "The maximal number of file system type" default 4 config DFS_FD_MAX int "The maximal number of opened files" default 16 config RT_USING_DFS_MNTTABLE bool "Using mount table for file system" default n help User can use mount table for automatically mount, for example: const struct dfs_mount_tbl mount_table[] = { {"flash0", "/", "elm", 0, 0}, {0} }; The mount_table must be terminated with NULL. config LPKG_USING_DFS_ELMFAT bool "Enable elm-chan fatfs" default n help FatFs is a generic FAT/exFAT file system module for small embedded systems. if LPKG_USING_DFS_ELMFAT menu "elm-chan's FatFs, Generic FAT Filesystem Module" config RT_DFS_ELM_CODE_PAGE int "OEM code page" default 437 config RT_DFS_ELM_WORD_ACCESS bool "Using RT_DFS_ELM_WORD_ACCESS" default y choice prompt "Support long file name" default LPKG_DFS_ELM_USE_LFN_3 config LPKG_DFS_ELM_USE_LFN_0 bool "0: LFN disable" config LPKG_DFS_ELM_USE_LFN_1 bool "1: LFN with static LFN working buffer" config LPKG_DFS_ELM_USE_LFN_2 bool "2: LFN with dynamic LFN working buffer on the stack" config LPKG_DFS_ELM_USE_LFN_3 bool "3: LFN with dynamic LFN working buffer on the heap" endchoice config RT_DFS_ELM_USE_LFN int default 0 if LPKG_DFS_ELM_USE_LFN_0 default 1 if LPKG_DFS_ELM_USE_LFN_1 default 2 if LPKG_DFS_ELM_USE_LFN_2 default 3 if LPKG_DFS_ELM_USE_LFN_3 choice prompt "Support unicode for long file name" default LPKG_DFS_ELM_LFN_UNICODE_0 config LPKG_DFS_ELM_LFN_UNICODE_0 bool "0: ANSI/OEM in current CP (TCHAR = char)" config LPKG_DFS_ELM_LFN_UNICODE_1 bool "1: Unicode in UTF-16 (TCHAR = WCHAR)" config LPKG_DFS_ELM_LFN_UNICODE_2 bool "2: Unicode in UTF-8 (TCHAR = char)" config LPKG_DFS_ELM_LFN_UNICODE_3 bool "3: Unicode in UTF-32 (TCHAR = DWORD)" endchoice config RT_DFS_ELM_LFN_UNICODE int default 0 if LPKG_DFS_ELM_LFN_UNICODE_0 default 1 if LPKG_DFS_ELM_LFN_UNICODE_1 default 2 if LPKG_DFS_ELM_LFN_UNICODE_2 default 3 if LPKG_DFS_ELM_LFN_UNICODE_3 config RT_DFS_ELM_USE_EXFAT bool "Support exFAT format" default n config RT_DFS_ELM_MAX_LFN int "Maximal size of file name length" range 12 255 default 255 config RT_DFS_ELM_DRIVES int "Number of volumes (logical drives) to be used." default 2 config RT_DFS_ELM_MAX_SECTOR_SIZE int "Maximum sector size to be handled." default 512 help If you use some spi nor flash for fatfs, please set this the erase sector size, for example 4096. config RT_DFS_FAL_BLK_DEVICE_NANE string "part name used to guide the generation of the block devices." default "rodata" help If you use some spi nor flash for fatfs, please set this string, this block device is used to mount fatfs. config RT_DFS_ELM_USE_ERASE bool "Enable sector erase feature" default n config RT_DFS_ELM_REENTRANT bool "Enable the reentrancy (thread safe) of the FatFs module" default y config RT_DFS_ELM_MUTEX_TIMEOUT int "Timeout of thread-safe protection mutex" range 0 1000000 default 3000 depends on RT_DFS_ELM_REENTRANT endmenu endif config RT_USING_DFS_ROMFS bool "Enable ReadOnly file system on flash" default n config RT_USING_DFS_RAMFS bool "Enable RAM file system" select RT_USING_MEMHEAP default n endif