summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorarmink <[email protected]>2017-10-05 16:20:21 +0800
committerarmink <[email protected]>2017-10-05 16:20:21 +0800
commit9d545566199c6b23ceeb7c4cb2c83b8f109c8ca9 (patch)
treef08d31047259b030a047ed381c1697ebc6b98f95 /components
parentfdd0ffb182c183c50c6f6c5a5b67bf08a3ed71fe (diff)
[KConfig] Change the RT_DFS_ELM_USE_LFN cfg to choice.
Diffstat (limited to 'components')
-rw-r--r--components/dfs/KConfig30
1 files changed, 22 insertions, 8 deletions
diff --git a/components/dfs/KConfig b/components/dfs/KConfig
index 10ac11e76e..512b6f271a 100644
--- a/components/dfs/KConfig
+++ b/components/dfs/KConfig
@@ -29,15 +29,29 @@ if RT_USING_DFS
int "OEM code page"
default 437
+ choice
+ prompt "Support long file name"
+ default RT_DFS_ELM_USE_LFN_0
+
+ config RT_DFS_ELM_USE_LFN_0
+ bool "0: LFN disable"
+
+ config RT_DFS_ELM_USE_LFN_1
+ bool "1: LFN with static LFN working buffer"
+
+ 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 "Support long file name"
- default 0
- range 0 3
- help
- 0: LFN disable
- 1: LFN with static LFN working buffer
- 2: LFN with dynamic LFN working buffer on the stack
- 3: LFN with dynamic LFN working buffer on the heap
+ 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"