mbed library sources. Supersedes mbed-src.

Fork of mbed-dev by mbed official

Revision:
147:30b64687e01f
Parent:
144:ef7eb2e8f9f7
--- a/api/SerialBase.h	Thu Sep 08 15:05:30 2016 +0100
+++ b/api/SerialBase.h	Fri Sep 16 16:24:25 2016 +0100
@@ -55,7 +55,9 @@
 
     enum IrqType {
         RxIrq = 0,
-        TxIrq
+        TxIrq,
+
+        IrqCnt
     };
 
     enum Flow {
@@ -231,7 +233,7 @@
 #endif
 
     serial_t         _serial;
-    Callback<void()> _irq[2];
+    Callback<void()> _irq[IrqCnt];
     int              _baud;
 
 };