diff --git a/drivers/include/drivers/BufferedSerial.h b/drivers/include/drivers/BufferedSerial.h index 892ab47..0c492e1 100644 --- a/drivers/include/drivers/BufferedSerial.h +++ b/drivers/include/drivers/BufferedSerial.h @@ -61,7 +61,8 @@ * @param tx Transmit pin * @param rx Receive pin * @param baud The baud rate of the serial port (optional, defaults to - * MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE) + * MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE, which is set via + * platform.default-serial-baud-rate in mbed_app.json) */ BufferedSerial( PinName tx, @@ -73,7 +74,8 @@ * receive pins, with a particular baud rate. * @param static_pinmap reference to structure which holds static pinmap * @param baud The baud rate of the serial port (optional, defaults to - * MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE) + * MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE, which is set via + * platform.default-serial-baud-rate in mbed_app.json) */ BufferedSerial( const serial_pinmap_t &static_pinmap, diff --git a/drivers/include/drivers/SerialBase.h b/drivers/include/drivers/SerialBase.h index 9288c27..71e94e3 100644 --- a/drivers/include/drivers/SerialBase.h +++ b/drivers/include/drivers/SerialBase.h @@ -48,7 +48,7 @@ public: /** Set the baud rate of the serial port * - * @param baudrate The baudrate of the serial port (default = 9600). + * @param baudrate The baudrate of the serial port (default = platform.default-serial-baud-rate). */ void baud(int baudrate); diff --git a/drivers/include/drivers/UnbufferedSerial.h b/drivers/include/drivers/UnbufferedSerial.h index a330d6e..de2054d 100644 --- a/drivers/include/drivers/UnbufferedSerial.h +++ b/drivers/include/drivers/UnbufferedSerial.h @@ -55,7 +55,8 @@ * * @param tx Transmit pin * @param rx Receive pin - * @param baud The baud rate of the serial port (optional, defaults to MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE) + * @param baud The baud rate of the serial port (optional, defaults to MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE, + * which is set via platform.default-serial-baud-rate in mbed_app.json) * * @note * Either tx or rx may be specified as NC if unused @@ -70,7 +71,8 @@ * receive pins, with a particular baud rate. * @param static_pinmap reference to structure which holds static pinmap * @param baud The baud rate of the serial port (optional, defaults to - * MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE) + * MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE, which is set via + * platform.default-serial-baud-rate in mbed_app.json) */ UnbufferedSerial( const serial_pinmap_t &static_pinmap, diff --git a/platform/mbed_lib.json b/platform/mbed_lib.json index fce62ea..4f69cc3 100644 --- a/platform/mbed_lib.json +++ b/platform/mbed_lib.json @@ -23,7 +23,7 @@ "stdio-baud-rate": { "help": "(Applies if target.console-uart is true.) Baud rate for stdio", - "value": 9600 + "value": 115200 }, "stdio-flush-at-exit": { @@ -33,7 +33,7 @@ "default-serial-baud-rate": { "help": "Default baud rate for a serial object (if not specified in the constructor)", - "value": 9600 + "value": 115200 }, "poll-use-lowpower-timer": { @@ -170,15 +170,6 @@ "STM": { "deepsleep-stats-verbose": false }, - "EFM32": { - "stdio-baud-rate": 115200 - }, - "EFR32": { - "stdio-baud-rate": 115200 - }, - "UNO_91H": { - "stdio-baud-rate": 115200 - }, "DISCO_L475VG_IOT01A": { "crash-capture-enabled": true, "fatal-error-auto-reboot-enabled": true @@ -219,12 +210,6 @@ "crash-capture-enabled": true, "fatal-error-auto-reboot-enabled": true }, - "NU_PFM_M2351": { - "stdio-baud-rate": 115200 - }, - "NU_M2354": { - "stdio-baud-rate": 115200 - }, "NRF52840_DK": { "crash-capture-enabled": true, "fatal-error-auto-reboot-enabled": true @@ -245,27 +230,19 @@ "crash-capture-enabled": true, "fatal-error-auto-reboot-enabled": true }, - "S5JS100": { - "stdio-baud-rate": 115200 - }, "NUCLEO_L452RE-P": { "crash-capture-enabled": true, "fatal-error-auto-reboot-enabled": true }, "ARM_MUSCA_B1": { - "stdio-convert-newlines": true, - "stdio-baud-rate": 115200 + "stdio-convert-newlines": true }, "ARM_MUSCA_S1": { - "stdio-convert-newlines": true, - "stdio-baud-rate": 115200 + "stdio-convert-newlines": true }, "MTS_DRAGONFLY_L471QG": { "crash-capture-enabled": true, "fatal-error-auto-reboot-enabled": true - }, - "CY8CKIT064B0S2_4343W": { - "stdio-baud-rate": 115200 } } }