diff options
| author | prife <[email protected]> | 2013-01-22 16:57:47 +0800 |
|---|---|---|
| committer | prife <[email protected]> | 2013-01-22 16:57:47 +0800 |
| commit | fbbc4c8d183cbe12b649eb2dc750708f534da9bc (patch) | |
| tree | 3aae6de3ceabff01b0c29fb5925472bb15d15ff8 /bsp/simlinux/drivers/usart_sim.c | |
| parent | 29d63fe2bcd04008322a0ca2259a56a6ed51ee89 (diff) | |
merge bsp/simlinux into bsp/simulator
Diffstat (limited to 'bsp/simlinux/drivers/usart_sim.c')
| -rwxr-xr-x | bsp/simlinux/drivers/usart_sim.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
