summaryrefslogtreecommitdiff
path: root/bsp/simulator/drivers/board.c
diff options
context:
space:
mode:
authorprife <[email protected]>2013-02-07 23:18:59 +0800
committerprife <[email protected]>2013-02-07 23:18:59 +0800
commit1c522be5151b0cebb7fc3b7fb35c682f243eb74c (patch)
treea71ca4d567f67ff9409d36748b92f9227be782ad /bsp/simulator/drivers/board.c
parentdc089a64445523496abfca3ceb7cec259ecd87ac (diff)
rewrite serial/uart code in simulator to support multi-uarts
Diffstat (limited to 'bsp/simulator/drivers/board.c')
-rwxr-xr-xbsp/simulator/drivers/board.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bsp/simulator/drivers/board.c b/bsp/simulator/drivers/board.c
index dc24d39e20..669628df75 100755
--- a/bsp/simulator/drivers/board.c
+++ b/bsp/simulator/drivers/board.c
@@ -62,8 +62,6 @@ _CRTIMP void __cdecl abort(void);
#endif
#endif
-#if defined(RT_USING_FINSH)
-#include <finsh.h>
void rt_hw_exit(void)
{
rt_kprintf("RT-Thread, bye\n");
@@ -81,6 +79,9 @@ void rt_hw_exit(void)
#endif
exit(0);
}
+
+#if defined(RT_USING_FINSH)
+#include <finsh.h>
FINSH_FUNCTION_EXPORT_ALIAS(rt_hw_exit, exit, exit rt - thread);
#endif /* RT_USING_FINSH */
@@ -97,7 +98,6 @@ void rt_hw_board_init()
//#endif
#if defined(RT_USING_CONSOLE)
- rt_hw_serial_init();
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
}