Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
et:examples:communication:rs232:linux [2011/03/22 09:44] raivo.sellet:examples:communication:rs232:linux [2020/07/20 09:00] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +<pagebreak>
 ====== RS-232 Linuxis ====== ====== RS-232 Linuxis ======
  
Line 68: Line 69:
     while (1)   //infinite loop     while (1)   //infinite loop
     {     {
-        if (usart_try_read_char(port, &c))      //if char is sent to controller, read it into c+          //if char is sent to controller, read it into c 
 +        if (usart_try_read_char(port, &c))      
         {         {
-            pin_toggle(led);        //invert LED +            //invert LED 
-            usart_send_string(port, "Tere volts!\r\n"); // Write some greetings+            pin_toggle(led); 
 +            // Write some greetings 
 +            usart_send_string(port, "Tere volts!\r\n"); 
         }         }
     }     }
et/examples/communication/rs232/linux.1300787093.txt.gz · Last modified: 2020/07/20 09:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0