Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of C027_Support_Plus_Dialing by
Diff: SerialPipe.cpp
- Revision:
 - 17:296d94a006b4
 - Parent:
 - 16:4a7ba1887e81
 - Child:
 - 18:e5697801df29
 
diff -r 4a7ba1887e81 -r 296d94a006b4 SerialPipe.cpp
--- a/SerialPipe.cpp	Fri Dec 06 09:28:43 2013 +0000
+++ b/SerialPipe.cpp	Fri Jan 31 09:49:51 2014 +0000
@@ -9,6 +9,16 @@
     attach(this, &SerialPipe::txIrqBuf, TxIrq);
 }
 
+SerialPipe::SerialPipe(PinName tx, PinName rx, PinName rts, PinName cts, 
+    int rxSize, int txSize) 
+    : _SerialPipeBase(tx,rx), _pipeRx(rxSize), _pipeTx(txSize)
+{
+    attach(this, &SerialPipe::rxIrqBuf, RxIrq);
+    attach(this, &SerialPipe::txIrqBuf, TxIrq);
+    
+    set_flow_control(RTSCTS, rts, cts);
+}
+
 SerialPipe::~SerialPipe(void)
 {
     attach(NULL, RxIrq);
@@ -94,10 +104,6 @@
 
 // -----------------------------------------------------------------------
 
-SerialPipeEx::SerialPipeEx(PinName tx, PinName rx, int rxSize, int txSize) 
-    : SerialPipe(tx,rx,rxSize,txSize)
-{}
-
 int SerialPipeEx::getLine(char* buffer, int length)
 {
     return getLine(buffer, length, &_pipeRx);
    