Software serial, for when you are out of serial pins

Dependents:   BufferedSoftSerial neurGAI_Seeed_BLUETOOTH LPC-SD-35 ESP-WROOM-02_test ... more

Revision:
6:517082212c00
Parent:
5:acfd0329f648
Child:
9:4e4617c4a441
diff -r acfd0329f648 -r 517082212c00 SoftSerial.h
--- a/SoftSerial.h	Sat Apr 26 20:55:02 2014 +0000
+++ b/SoftSerial.h	Sun Apr 27 08:33:17 2014 +0000
@@ -2,7 +2,7 @@
 #define SOFTSERIAL_H
 
 #include "mbed.h"
-
+#include "SoftSerial_Ticker.h"
 /** A software serial implementation
  *
  */
@@ -103,13 +103,12 @@
     volatile int out_buffer;
     volatile bool out_valid;
     bool rx_error;
-    Timeout rxout;
-    Ticker rxticker;
+    FlexTicker rxticker;
     
     //tx
     void tx_handler(void);
     void prepare_tx(int c);
-    Timeout txout;
+    FlexTicker txticker;
     int _char;
     volatile int tx_bit;