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
Revision 13:bc3131985c4d, committed 2017-04-18
- Comitter:
- JMF
- Date:
- Tue Apr 18 00:28:20 2017 +0000
- Parent:
- 12:a0d37088b405
- Commit message:
- BufferedSerial class always sticks a \n on the end of every string... removing.
Changed in this revision
BufferedSerial.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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;