Software serial, for when you are out of serial pins

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

Revision:
1:f8b4b764ace7
Parent:
0:8edaa7abe724
Child:
2:9e01a38606b4
--- a/SoftSerial.h	Sat Apr 26 14:46:03 2014 +0000
+++ b/SoftSerial.h	Sat Apr 26 15:13:01 2014 +0000
@@ -90,13 +90,17 @@
     Parity _parity;
     
     void rx_gpio_irq_handler(void);
-    void rx_fall_handler(void);
-    void rx_handler(bool rise);
+    void rx_handler(void);
+    int read_buffer, rx_bit;
+    volatile int out_buffer;
+    volatile bool out_valid;
+    bool rx_error;
+    Timeout rxout;
     
     //tx
     void tx_handler(void);
     inline int get_bit(int bit);
-    Timeout timeout;
+    Timeout txout;
     int _char;
     volatile int tx_bit;