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

Revision:
1:bf3fb80028d8
Parent:
0:8ac1280934b4
Child:
2:cb74b330b285
--- a/SerialComms.cpp	Mon Feb 15 19:49:37 2016 +0000
+++ b/SerialComms.cpp	Mon Feb 15 19:59:59 2016 +0000
@@ -1,9 +1,9 @@
 #include "mbed.h"
 #include "SerialComms.h"
 
-SerialComms::SerialComms(Serial *HLC_Conn)
+SerialComms::SerialComms(PinName tx,PinName rx)
 {
-    _HLC_Conn = HLC_Conn;
+    _HLC_Conn = new Serial(tx,rx);
     _HLC_Conn-> baud(SERIAL_BAUD_RATE);
     _HLC_Conn -> format(8,SerialBase::None,1);