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:
- 13:00182678a254
- Parent:
- 12:779304f9c5d2
--- a/BufferedSerial.cpp Sun Jul 26 21:53:11 2015 +0000 +++ b/BufferedSerial.cpp Sun Nov 01 21:28:36 2015 +0000 @@ -32,6 +32,8 @@ return; } + + BufferedSerial::~BufferedSerial(void) { RawSerial::attach(NULL, RawSerial::RxIrq);