Browse Source

Merge pull request #862 from armink/fix_kconfig

Fix kconfig
Bernard Xiong 7 years ago
parent
commit
8d169a8b19
2 changed files with 37 additions and 1 deletions
  1. 24 0
      components/dfs/KConfig
  2. 13 1
      components/net/KConfig

+ 24 - 0
components/dfs/KConfig

@@ -29,6 +29,30 @@ 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
+            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"
             default 256

+ 13 - 1
components/net/KConfig

@@ -1,6 +1,6 @@
 menu "Network stack"
 
-menu "light weight TCP/IP stack"
+menu "Light weight TCP/IP stack"
 config RT_USING_LWIP
     bool "Enable lwIP stack"
     default n
@@ -65,6 +65,10 @@ config RT_USING_LWIP
         config RT_LWIP_TCP
             bool "TCP protocol"
             default y
+        
+        config RT_LWIP_RAW
+            bool "RAW protocol"
+            default n
 
         config RT_LWIP_PPP
             bool "PPP protocol"
@@ -78,6 +82,10 @@ config RT_USING_LWIP
             bool "PPPoS protocol"
             default n
 
+        config RT_LWIP_USING_RT_MEM
+            bool "Using RT-Thread Memory Management for LWIP"
+            default y
+        
         config RT_LWIP_PBUF_NUM
             int "the number of PBUF"
             default 16
@@ -161,4 +169,8 @@ endmenu
 
 source "$RTT_DIR/components/net/freemodbus/KConfig"
 
+config RT_USING_NETUTILS
+    bool "Enable net utils"
+    default n
+
 endmenu