UAVX Multicopter Flight Controller.

Dependencies:   mbed

Revision:
2:90292f8bd179
Parent:
0:62a1c91a859a
--- a/serial.c	Fri Feb 25 01:35:24 2011 +0000
+++ b/serial.c	Tue Apr 26 12:12:29 2011 +0000
@@ -33,7 +33,7 @@
 void TxBin8(uint8);
 void TxNextLine(uint8);
 void TxNibble( uint8);
-void TxValH( uint8);
+void TxValH(uint8);
 void TxValH16( uint16);
 uint8 RxChar(void);
 uint8 PollRxChar(void);
@@ -57,8 +57,8 @@
 
     TxCheckSum ^= ch;
 
-    while ( !TelemetrySerial.writeable() ) {};
-    TelemetrySerial.putc(ch);
+    while ( !SERIAL_TELEMETRY.writeable() ) {};
+    SERIAL_TELEMETRY.putc(ch);
 
     if ( EchoToLogFile )
         TxLogChar(ch);
@@ -124,8 +124,8 @@
 uint8 PollRxChar(void) {
     uint8    ch;
 
-    if (  TelemetrySerial.readable() ) {    // a character is waiting in the buffer
-        ch = TelemetrySerial.getc();        // get the character
+    if (  SERIAL_TELEMETRY.readable() ) {    // a character is waiting in the buffer
+        ch = SERIAL_TELEMETRY.getc();        // get the character
         TxChar(ch);                         // echo it for UAVPSet
         return(ch);                         // and return it
     }
@@ -136,9 +136,9 @@
 uint8 RxChar(void) {
     uint8    ch;
 
-    while ( !TelemetrySerial.readable() ) {};
+    while ( !SERIAL_TELEMETRY.readable() ) {};
 
-    ch = TelemetrySerial.getc();    // get the character
+    ch = SERIAL_TELEMETRY.getc();    // get the character
 
     return(ch);
 } // RxChar