Browse Source

[BSP] fix compiling issue in simulator for Linux

Bernard Xiong 9 years ago
parent
commit
1ac6bc6c88
2 changed files with 5 additions and 7 deletions
  1. 1 1
      bsp/simulator/drivers/module_win32.c
  2. 4 6
      bsp/simulator/drivers/uart_console.c

+ 1 - 1
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);
 

+ 4 - 6
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;