This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| et:examples:communication:rs232:linux [2011/03/22 09:44] – raivo.sell | et:examples:communication:rs232:linux [2020/07/20 09:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | < | ||
| ====== RS-232 Linuxis ====== | ====== RS-232 Linuxis ====== | ||
| Line 68: | Line 69: | ||
| while (1) // | while (1) // | ||
| { | { | ||
| - | if (usart_try_read_char(port, | + | |
| + | if (usart_try_read_char(port, | ||
| { | { | ||
| - | pin_toggle(led); | + | |
| - | usart_send_string(port, | + | |
| + | | ||
| + | usart_send_string(port, | ||
| } | } | ||
| } | } | ||