UART Driver to receive asynchronous Serial Comms from a Raspberry Pi and parse the results.

Revision:
3:b608ee5b9b5d
Parent:
2:cb74b330b285
Child:
4:85353bd571f2
--- a/SerialComms.cpp	Mon Feb 15 20:09:32 2016 +0000
+++ b/SerialComms.cpp	Mon Feb 15 20:10:55 2016 +0000
@@ -3,11 +3,11 @@
 
 SerialComms::SerialComms(PinName tx,PinName rx)
 {
-    _HLC_Conn = new Serial(tx,rx);
+    _HLC_Conn = new RawSerial(tx,rx);
     _HLC_Conn-> baud(SERIAL_BAUD_RATE);
     _HLC_Conn -> format(8,SerialBase::None,1);
     
-    _HLC_Conn -> attach(this,&SerialComms::incomingDataISR,Serial::RxIrq);
+    _HLC_Conn -> attach(this,&SerialComms::incomingDataISR,RawSerial::RxIrq);
     
     incomingDataUpdate = FALSE;
 }
@@ -30,11 +30,6 @@
         }
     }
     incomingDataUpdate = TRUE;
-    
-//    for(int c = 0; c < 4; c++)
-//    {
-//        printf("recieved: %d\r\n",receiverBuffer[c]);
-//    }
 }
 
 int *SerialComms::returnMotorSpeeds()