Inherit from Serial and use software buffers for TX and RX. This allows the UART peripherals to operate in a IRQ driven mode. Overrides most (but not all) stdio functions as Serial did
Dependencies: Buffer
Fork of BufferedSerial by
Diff: BufferedSerial.cpp
- Revision:
- 13:bc3131985c4d
- Parent:
- 11:779304f9c5d2
--- a/BufferedSerial.cpp Mon Mar 07 21:10:27 2016 +0000 +++ b/BufferedSerial.cpp Tue Apr 18 00:28:20 2017 +0000 @@ -71,7 +71,7 @@ while(*(ptr) != 0) { _txbuf = *(ptr++); } - _txbuf = '\n'; // done per puts definition + //_txbuf = '\n'; // done per puts definition BufferedSerial::prime(); return (ptr - s) + 1;