From bbe6425f9404820d04c4aef783701a1f8521cb15 Mon Sep 17 00:00:00 2001 From: bernard Date: Fri, 3 Nov 2017 21:08:00 +0800 Subject: [PATCH] [KConfig] Update Kconfig 1. Change the type of RT_DEBUG_THREAD to int; 2. Add Kconfig of VBUS. --- components/KConfig | 2 ++ components/vbus/Kconfig | 23 +++++++++++++++++++++++ src/KConfig | 15 ++++++++------- 3 files changed, 33 insertions(+), 7 deletions(-) create mode 100644 components/vbus/Kconfig diff --git a/components/KConfig b/components/KConfig index c073c19328..957df871a4 100644 --- a/components/KConfig +++ b/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 diff --git a/components/vbus/Kconfig b/components/vbus/Kconfig new file mode 100644 index 0000000000..3b0f245b5a --- /dev/null +++ b/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 diff --git a/src/KConfig b/src/KConfig index 7e18cfeb69..a57711eb2b 100644 --- a/src/KConfig +++ b/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