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
Fork of BufferedSerial by
Diff: BufferedSerial.cpp
- Revision:
- 6:88f4e4b13df2
- Parent:
- 4:2ba4d2e1f05d
--- a/BufferedSerial.cpp Mon Mar 24 19:56:57 2014 +0000 +++ b/BufferedSerial.cpp Sat May 03 16:48:53 2014 +0000 @@ -88,7 +88,7 @@ error("%s %d buffer overwrite!\n", __FILE__, __LINE__); } va_end(arg); - r = BufferedSerial::write(buf, r); + r = write(buf, r); return r; }