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
Revision 6:88f4e4b13df2, committed 2014-05-03
- Comitter:
- igbt6
- Date:
- Sat May 03 16:48:53 2014 +0000
- Parent:
- 5:4d6a311fc8bf
- Commit message:
- small changes
Changed in this revision
| BufferedSerial.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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;
}
