A library for talking to Multi-Tech's Cellular SocketModem Devices.

Dependents:   M2X_dev axeda_wrapper_dev MTS_M2x_Example1 MTS_Cellular_Connect_Example ... more

Revision:
3:0caed9526d24
Parent:
2:8d3ea0dfce39
Child:
10:2bd727a4b329
--- a/io/MTSSerialFlowControl.cpp	Wed Dec 11 20:07:02 2013 +0000
+++ b/io/MTSSerialFlowControl.cpp	Wed Dec 11 20:19:53 2013 +0000
@@ -6,13 +6,13 @@
 MTSSerialFlowControl::MTSSerialFlowControl(PinName TXD, PinName RXD, PinName RTS, PinName CTS, int txBufSize, int rxBufSize) : MTSBufferedIO(txBufSize, rxBufSize)
 {
     serial = new Serial(TXD, RXD);
-    //serial->attach(this, &MTSSerialFlowControl::handleRead, Serial::RxIrq);
-    //serial->attach(this, &MTSSerialFlowControl::handleWrite, Serial::TxIrq);
+    serial->attach(this, &MTSSerialFlowControl::handleRead, Serial::RxIrq);
+    serial->attach(this, &MTSSerialFlowControl::handleWrite, Serial::TxIrq);
     
     clearToSend = true;
     rts = new InterruptIn(RTS);
-    //rts->rise(this, &MTSSerialFlowControl::stopSending); // active low -> stop sending
-    //rts->fall(this, &MTSSerialFlowControl::startSending); // active high -> start sending
+    rts->rise(this, &MTSSerialFlowControl::stopSending); // active low -> stop sending
+    rts->fall(this, &MTSSerialFlowControl::startSending); // active high -> start sending
     
     cts = new DigitalOut(CTS);
     cts = 0;