[KConfig] Change the RT_DFS_ELM_USE_LFN cfg to choice.
This commit is contained in:
parent
fdd0ffb182
commit
9d54556619
|
@ -29,15 +29,29 @@ if RT_USING_DFS
|
||||||
int "OEM code page"
|
int "OEM code page"
|
||||||
default 437
|
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
|
config RT_DFS_ELM_USE_LFN
|
||||||
int "Support long file name"
|
int
|
||||||
default 0
|
default 0 if RT_DFS_ELM_USE_LFN_0
|
||||||
range 0 3
|
default 1 if RT_DFS_ELM_USE_LFN_1
|
||||||
help
|
default 2 if RT_DFS_ELM_USE_LFN_2
|
||||||
0: LFN disable
|
default 3 if RT_DFS_ELM_USE_LFN_3
|
||||||
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
|
|
||||||
|
|
||||||
config RT_DFS_ELM_MAX_LFN
|
config RT_DFS_ELM_MAX_LFN
|
||||||
int "Maximal size of file name length"
|
int "Maximal size of file name length"
|
||||||
|
|
Loading…
Reference in New Issue