C027 updated to work with latest mBed libraries

Dependents:   Cellular_HelloMQTT UBLOXModemDriver UBLOXMQTTDriver

Fork of C027_Support by u-blox

Revision:
139:380bee4079a3
Parent:
116:709a6386e685
--- a/SerialPipe.cpp	Thu Feb 25 13:22:34 2016 +0000
+++ b/SerialPipe.cpp	Tue Jan 24 17:05:14 2017 +0000
@@ -1,12 +1,12 @@
 #include "SerialPipe.h"
 
 SerialPipe::SerialPipe(PinName tx, PinName rx, int rxSize, int txSize) : 
-            _SerialPipeBase(tx,rx), 
+            _SerialPipeBase(tx,rx,115200), 
             _pipeRx( (rx!=NC) ? rxSize : 0), 
             _pipeTx( (tx!=NC) ? txSize : 0)
 {
     if (rx!=NC)
-        attach(this, &SerialPipe::rxIrqBuf, RxIrq);
+        attach(Callback<void()>(this, &SerialPipe::rxIrqBuf), RxIrq);
 }
 
 SerialPipe::~SerialPipe(void)
@@ -75,7 +75,7 @@
     txCopy();
     // attach the tx isr to handle the remaining data
     if (_pipeTx.readable())
-        attach(this, &SerialPipe::txIrqBuf, TxIrq);
+        attach(Callback<void()>(this, &SerialPipe::txIrqBuf), TxIrq);
 }
 
 // rx channel