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.h
- Revision:
- 3:6b76fcf27545
- Parent:
- 2:7e8a450a9101
- Child:
- 5:4d6a311fc8bf
--- a/BufferedSerial.h Fri May 24 22:00:26 2013 +0000 +++ b/BufferedSerial.h Wed Jun 12 20:40:15 2013 +0000 @@ -73,8 +73,8 @@ class BufferedSerial : public Serial { private: - Buffer <char> _rxbuf; - Buffer <char> _txbuf; + Buffer <char> _rxbuf; + Buffer <char> _txbuf; void rxIrq(void); void txIrq(void);