summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2015-10-02 08:16:15 +0800
committerBernard Xiong <[email protected]>2015-10-02 08:16:15 +0800
commita65ee8ac451723e149a5b6d6d43ee1c3ac37549b (patch)
tree0e5ee4b94e2da9e40dfa744e5863c5e87d56a0ee
parentd2ec1f3eaac98e693414e46fe236edf140c5e6f0 (diff)
[BSP] disable module feature under simulator for Linux
-rw-r--r--bsp/simulator/drivers/uart_console.c2
-rwxr-xr-xbsp/simulator/rtconfig.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/bsp/simulator/drivers/uart_console.c b/bsp/simulator/drivers/uart_console.c
index 283ac83a05..913daf2311 100644
--- a/bsp/simulator/drivers/uart_console.c
+++ b/bsp/simulator/drivers/uart_console.c
@@ -97,7 +97,7 @@ static void set_stty(void)
tcsetattr(STDIN_FILENO, TCSANOW, &newt);
}
-static void restore_stty(void)
+void restore_stty(void)
{
/* recover terminal's attribute */
tcsetattr(STDIN_FILENO, TCSANOW, &oldt);
diff --git a/bsp/simulator/rtconfig.h b/bsp/simulator/rtconfig.h
index 2555fc11da..aa839f5621 100755
--- a/bsp/simulator/rtconfig.h
+++ b/bsp/simulator/rtconfig.h
@@ -99,7 +99,7 @@
// <bool name="RT_USING_PTHREADS" description="Using POSIX threads library" default="true" />
// #define RT_USING_PTHREADS
// <bool name="RT_USING_MODULE" description="Enable Moudle Application" default="true" />
-#define RT_USING_MODULE
+// #define RT_USING_MODULE
// </section>
// <section name="RT_USING_DFS" description="Device file system" default="true" >