diff options
| author | ZYH <[email protected]> | 2017-12-21 21:26:54 +0800 |
|---|---|---|
| committer | ZYH <[email protected]> | 2017-12-21 21:26:54 +0800 |
| commit | fe27b9751cbb00397d93cb6bb4b355546c4f4d64 (patch) | |
| tree | e801c2e85f95c8459ace48e5f51e3c03f1d16e2e /components/dfs | |
| parent | 92f5b437f77a444f01ef78e258f1fe6c96b656a6 (diff) | |
| parent | d78f5eb6740310649db8e7f4ba81afeca826a5d5 (diff) | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'components/dfs')
| -rw-r--r-- | components/dfs/Kconfig | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/components/dfs/Kconfig b/components/dfs/Kconfig index 91df96cb08..ec9985e21c 100644 --- a/components/dfs/Kconfig +++ b/components/dfs/Kconfig @@ -12,17 +12,20 @@ if RT_USING_DFS default y config DFS_FILESYSTEMS_MAX - int "The maximal number of mounted file system" - default 2 + int "The maximal number of mounted file system" + default 4 if RT_USING_DFS_NFS + default 2 config DFS_FILESYSTEM_TYPES_MAX int "The maximal number of file system type" - default 2 + default 4 if RT_USING_DFS_NFS + default 2 config DFS_FD_MAX int "The maximal number of opened files" + default 16 if RT_USING_DFS_NFS default 4 - + config RT_USING_DFS_ELMFAT bool "Enable elm-chan fatfs" default y @@ -51,18 +54,18 @@ if RT_USING_DFS config RT_DFS_ELM_USE_LFN_2 bool "2: LFN with dynamic LFN working buffer on the stack" - + config RT_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 RT_DFS_ELM_USE_LFN_0 default 1 if RT_DFS_ELM_USE_LFN_1 default 2 if RT_DFS_ELM_USE_LFN_2 default 3 if RT_DFS_ELM_USE_LFN_3 - + config RT_DFS_ELM_MAX_LFN int "Maximal size of file name length" range 12 255 @@ -81,7 +84,7 @@ if RT_USING_DFS 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 @@ -91,7 +94,7 @@ if RT_USING_DFS config RT_USING_DFS_DEVFS bool "Using devfs for device objects" default y - + config RT_USING_DFS_NET bool "Enable BSD socket operated by file system API" select RT_USING_LWIP @@ -140,23 +143,23 @@ if RT_USING_DFS config RT_UFFS_ECC_MODE_2 bool "2: Flash driver(or by hardware) calculate the ECC" - + config RT_UFFS_ECC_MODE_3 bool "3: Hardware calculate the ECC and automatically write to spare." endchoice - + config RT_UFFS_ECC_MODE int default 0 if RT_UFFS_ECC_MODE_0 default 1 if RT_UFFS_ECC_MODE_1 default 2 if RT_UFFS_ECC_MODE_2 default 3 if RT_UFFS_ECC_MODE_3 - + endif config RT_USING_DFS_NFS bool "Using NFS v3 client file system" - depends on RT_USING_LWIP + select RT_USING_LWIP default n if RT_USING_DFS_NFS |
