summaryrefslogtreecommitdiff
path: root/bsp/simlinux
diff options
context:
space:
mode:
authorprife <[email protected]>2013-01-22 16:57:47 +0800
committerprife <[email protected]>2013-01-22 16:57:47 +0800
commitfbbc4c8d183cbe12b649eb2dc750708f534da9bc (patch)
tree3aae6de3ceabff01b0c29fb5925472bb15d15ff8 /bsp/simlinux
parent29d63fe2bcd04008322a0ca2259a56a6ed51ee89 (diff)
merge bsp/simlinux into bsp/simulator
Diffstat (limited to 'bsp/simlinux')
-rwxr-xr-xbsp/simlinux/drivers/board.c4
-rwxr-xr-xbsp/simlinux/drivers/usart_sim.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/bsp/simlinux/drivers/board.c b/bsp/simlinux/drivers/board.c
index c39053e5da..f497561bcb 100755
--- a/bsp/simlinux/drivers/board.c
+++ b/bsp/simlinux/drivers/board.c
@@ -71,8 +71,8 @@ void rt_hw_exit(void)
/* *
* getchar reads key from buffer, while finsh need an non-buffer getchar
* in windows, getch is such an function, in linux, we had to change
- * the behaviour of terminal to get an non-buffer getchar.
- * in usart_sim.c, set_stty is called to do this work
+ * the behaviour of terminal to get an non-buffer getchar.
+ * in usart_sim.c, set_stty is called to do this work
* */
{
extern void restore_stty(void);
diff --git a/bsp/simlinux/drivers/usart_sim.c b/bsp/simlinux/drivers/usart_sim.c
index 0e9c528efe..2cbb1ed345 100755
--- a/bsp/simlinux/drivers/usart_sim.c
+++ b/bsp/simlinux/drivers/usart_sim.c
@@ -123,7 +123,7 @@ static int savekey(unsigned char key)
serial_device.rx_indicate(&serial_device, rx_length);
}
- return 0;
+ return 0;
}
#ifdef _WIN32
static DWORD WINAPI ThreadforKeyGet(LPVOID lpParam)
@@ -131,7 +131,7 @@ static DWORD WINAPI ThreadforKeyGet(LPVOID lpParam)
static struct termios oldt, newt;
/*simulate windows' getch(), it works!!*/
-void set_stty(void)
+void set_stty(void)
{
/* get terminal input's attribute */
tcgetattr(STDIN_FILENO, &oldt);