The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Revision:
85:024bf7f99721
Parent:
75:dc225afb6914
Child:
98:8ab26030e058
--- a/SerialBase.h	Mon May 19 18:14:09 2014 +0100
+++ b/SerialBase.h	Wed Jun 11 15:14:05 2014 +0100
@@ -106,11 +106,11 @@
     /** Generate a break condition on the serial line
      */
     void send_break();
-    
+
 #if DEVICE_SERIAL_FC
     /** Set the flow control type on the serial port
      *
-     *  @param type the flow control type (Disabled, RTS, CTS, RTSCTS)     
+     *  @param type the flow control type (Disabled, RTS, CTS, RTSCTS)
      *  @param flow1 the first flow control pin (RTS for RTS or RTSCTS, CTS for CTS)
      *  @param flow2 the second flow control pin (CTS for RTSCTS)
      */
@@ -121,7 +121,9 @@
 
 protected:
     SerialBase(PinName tx, PinName rx);
- 
+    virtual ~SerialBase() {
+    }
+
     int _base_getc();
     int _base_putc(int c);