summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2015-09-30 10:21:55 +0000
committerBernard Xiong <[email protected]>2015-09-30 10:21:55 +0000
commit1ac6bc6c889f5f6760893a7aab33873ebe9dfe69 (patch)
tree165ee43500e79ca7bb97f395c9112e4946fbd657
parentcdf4c7e89746519c9a615323e8f9e78bc70f82aa (diff)
[BSP] fix compiling issue in simulator for Linux
-rw-r--r--bsp/simulator/drivers/module_win32.c2
-rw-r--r--bsp/simulator/drivers/uart_console.c10
2 files changed, 5 insertions, 7 deletions
diff --git a/bsp/simulator/drivers/module_win32.c b/bsp/simulator/drivers/module_win32.c
index 83e9304ff7..0c998eed2c 100644
--- a/bsp/simulator/drivers/module_win32.c
+++ b/bsp/simulator/drivers/module_win32.c
@@ -17,7 +17,7 @@
#include <rtm.h>
#ifdef RT_USING_MODULE
-static void rt_module_init_object_container(struct rt_module *module)
+void rt_module_init_object_container(struct rt_module *module)
{
RT_ASSERT(module != RT_NULL);
diff --git a/bsp/simulator/drivers/uart_console.c b/bsp/simulator/drivers/uart_console.c
index 95a9cb11dd..283ac83a05 100644
--- a/bsp/simulator/drivers/uart_console.c
+++ b/bsp/simulator/drivers/uart_console.c
@@ -5,8 +5,6 @@
#include <rtthread.h>
#include <rtdevice.h>
-#include <cpu_port.h>
-
/* uart driver */
struct console_uart
{
@@ -110,10 +108,10 @@ static void * ThreadforKeyGet(void * lpParam)
#endif /* not _WIN32*/
{
/*
- * left key(��)�� 0xe04b
- * up key(��)�� 0xe048
- * right key(��)�� 0xe04d
- * down key(��)�� 0xe050
+ * left key(��)�� 0xe04b
+ * up key(��)�� 0xe048
+ * right key(��)�� 0xe04d
+ * down key(��)�� 0xe050
*/
unsigned char key;