Inherit from SoftSerial and use software buffers for TX and RX. This allows the SoftSerial to operate in a IRQ driven mode. Overrides most (but not all) stdio functions as SoftSerial did
Dependencies: Buffer SoftSerial
Dependents: 2014_Ensoul_Capstone F103RB_tcp_rtu_modbus_copy_v1_0 SDP_Testing Nucleo_SFM ... more
Fork of BufferedSerial by
Todo: Write something here :)
Diff: BufferedSoftSerial.cpp
- Revision:
- 9:5b069a1896f9
- Parent:
- 6:4e3e18b41ea6
--- a/BufferedSoftSerial.cpp Sun Apr 27 19:48:49 2014 +0000 +++ b/BufferedSoftSerial.cpp Sat Jul 05 08:08:07 2014 +0000 @@ -31,14 +31,6 @@ return; } -BufferedSoftSerial::~BufferedSoftSerial(void) -{ - SoftSerial::attach(NULL, SoftSerial::RxIrq); - SoftSerial::attach(NULL, SoftSerial::TxIrq); - - return; -} - int BufferedSoftSerial::readable(void) { return _rxbuf.available(); // note: look if things are in the buffer