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 VodafoneUSBModem by
Diff: serial/io/IOSerialStream.cpp
- Revision:
- 64:a44f64dc2879
- Parent:
- 62:6f42a974eea6
- Child:
- 68:07ac4e1ea5b0
diff -r 6f42a974eea6 -r a44f64dc2879 serial/io/IOSerialStream.cpp
--- a/serial/io/IOSerialStream.cpp	Tue Nov 13 12:00:34 2012 +0000
+++ b/serial/io/IOSerialStream.cpp	Thu Nov 22 15:04:30 2012 +0000
@@ -34,14 +34,14 @@
   m_availableSphre.wait();
   m_spaceSphre.wait();
   //Attach interrupts
-  m_serial.attach(this, &IOSerialStream::readable, mbed::Serial::RxIrq);
-  m_serial.attach(this, &IOSerialStream::writeable, mbed::Serial::TxIrq);
+  m_serial.attach(this, &IOSerialStream::readable, RxIrq);
+  m_serial.attach(this, &IOSerialStream::writeable, TxIrq);
 }
 
 /*virtual*/ IOSerialStream::~IOSerialStream()
 {
-  m_serial.attach(NULL, mbed::Serial::RxIrq);
-  m_serial.attach(NULL, mbed::Serial::TxIrq);
+  m_serial.attach(NULL, RxIrq);
+  m_serial.attach(NULL, TxIrq);
 }
 
 //0 for non-blocking (returns immediately), osWaitForever for infinite blocking
    