Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ConfigFile SDFileSystem mbed
Fork of LAURUS_program by
Diff: BufferedSerial/BufferedSerial.h
- Revision:
- 28:d993f3bbe302
- Parent:
- 6:2b68f85a984a
diff -r a26ff85bba23 -r d993f3bbe302 BufferedSerial/BufferedSerial.h
--- 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:
