I realize this is an old thread. This isn't usable in my current code ATM, as I think it is forked from a pretty dated project, but I think this would be useful for some folks. Found a code snippet that ended up bringing me back to this:
STDIO retargeting
The mbed-drivers defines retargeting of stdin, stdout and stderr to UART. The default baudrate for STDIO UART peripheral is set via YOTTA_CFG_MBED_OS_STDIO_DEFAULT_BAUD. If this yotta config is not defined, the default value is 115200.
To change STDIO serial settings in the runtime, retrieve the Serial STDIO object get_stdio_serial().
Serial& pc = get_stdio_serial();
pc.baud(9600);
Hello, Is there any possibility to change default baud rate from 9600 without creating an Serial object?
I don't want to use:
I would like to use:
Regards, Michal.