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

Dependents:   mbed_esp8266_demo

Fork of BufferedSerial by Sam Grove

Revision:
9:2cb30392ade6
Parent:
8:506247a040bc
Child:
10:9ee15ae3d1a3
--- a/BufferedSerial.h	Sun Jan 04 22:15:53 2015 +0000
+++ b/BufferedSerial.h	Sun Jan 04 23:27:53 2015 +0000
@@ -31,7 +31,7 @@
 #define SERIAL_BASE  RawSerial
 
 // Internal buffer size (Ring buffers will be 2X this value each for RX and TX...)
-#define BUFFEREDSERIAL_MAX_BUFFER_SIZE   4096
+#define BUFFEREDSERIAL_MAX_BUFFER_SIZE   512
 
 /** A serial port (UART) for communication with other serial devices
  *