hiroya taura / Mbed 2 deprecated LAURUS_program

Dependencies:   ConfigFile SDFileSystem mbed

Fork of LAURUS_program by LAURUS

Revision:
28:d993f3bbe302
Parent:
6:2b68f85a984a
--- a/BufferedSerial/BufferedSerial.h	Sun Jun 28 15:42:26 2015 +0000
+++ b/BufferedSerial/BufferedSerial.h	Wed Jul 01 14:57:24 2015 +0000
@@ -30,6 +30,8 @@
 // Base Class
 #define SERIAL_BASE  RawSerial
 
+#define XBEE_WAIT_TIME    3800
+
 /** A serial port (UART) for communication with other serial devices
  *
  * Can be used for Full Duplex communication, or Simplex by specifying
@@ -75,6 +77,7 @@
 {
 private:
     InterruptIn   _cts;
+    Timer         _cts_timer;
     Buffer <char> _rxbuf;
     Buffer <char> _txbuf;
     uint32_t      _buf_size;
@@ -84,6 +87,7 @@
     void txIrq(void);
     void prime(void);
     
+    bool checkCTS(void);
     void ctsInterrupt(void);
     
 public: