浏览代码

[KConfig] Update Kconfig

1. Change the type of RT_DEBUG_THREAD to int;
2. Add Kconfig of VBUS.
bernard 7 年之前
父节点
当前提交
bbe6425f94
共有 3 个文件被更改,包括 33 次插入7 次删除
  1. 2 0
      components/KConfig
  2. 23 0
      components/vbus/Kconfig
  3. 8 7
      src/KConfig

+ 2 - 0
components/KConfig

@@ -24,4 +24,6 @@ source "$RTT_DIR/components/net/KConfig"
 
 source "$RTT_DIR/components/gui/Kconfig"
 
+source "$RTT_DIR/components/vbus/Kconfig"
+
 endmenu

+ 23 - 0
components/vbus/Kconfig

@@ -0,0 +1,23 @@
+menu "VBUS(Virtual Software BUS)"
+
+config RT_USING_VBUS
+    bool "Enable VBUS"
+    default n
+
+if RT_USING_VBUS
+    config RT_USING_VBUS_RFS
+        bool "Enable Remote File System on VBUS"
+        default n
+        help
+            When enable remote file system, the application can visit the remote file system
+            through VBUS with POSIX file I/O. 
+    
+    config RT_USING_VBUS_RSHELL
+        bool "Enable Remote Shell on VBUS"
+        default n
+        help
+            When enable remote shell, the finsh/msh of RT-Thread can be operated from another
+            Operating System.
+endif
+
+endmenu

+ 8 - 7
src/KConfig

@@ -44,16 +44,11 @@ config RT_DEBUG_INIT
         print the procedure name of initialization
 
 config RT_DEBUG_THREAD
-    bool "Enable thread switch information dump"
-    default n
+    int "Enable thread switch information dump"
+    default 0
     help
         print the switch to/from thread name when each thread context switch
 
-config RT_USING_INTERRUPT_INFO
-    bool "Enable additional interrupt trace information"
-    default n
-    help
-		Add name and counter information for interrupt trace.
 endif
 
 config RT_USING_HOOK
@@ -150,6 +145,12 @@ menu "Kernel Device Object"
         bool "Using device object"
         default y
 
+    config RT_USING_INTERRUPT_INFO
+        bool "Enable additional interrupt trace information"
+        default n
+        help
+            Add name and counter information for interrupt trace.
+
     config RT_USING_CONSOLE
         bool "Using console for rt_kprintf"
         default y