DA fork of BufferedSerial

Dependencies:   Buffer

Fork of BufferedSerial by Sam Grove

Revision:
13:70554b829bdd
Parent:
12:a0d37088b405
--- a/BufferedSerial.h	Mon Mar 07 21:10:27 2016 +0000
+++ b/BufferedSerial.h	Mon Aug 06 17:29:07 2018 +0000
@@ -84,12 +84,13 @@
     /** Create a BufferedSerial port, connected to the specified transmit and receive pins
      *  @param tx Transmit pin
      *  @param rx Receive pin
+     *  @param baud Baud rate // CUSTOM
      *  @param buf_size printf() buffer size
      *  @param tx_multiple amount of max printf() present in the internal ring buffer at one time
      *  @param name optional name
      *  @note Either tx or rx may be specified as NC if unused
      */
-    BufferedSerial(PinName tx, PinName rx, uint32_t buf_size = 256, uint32_t tx_multiple = 4,const char* name=NULL);
+    BufferedSerial(PinName tx, PinName rx, int baud = MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE, uint32_t buf_size = 256, uint32_t tx_multiple = 4,const char* name=NULL);
     
     /** Destroy a BufferedSerial port
      */