When a baud rate is set in UART, SPI, or I2C, mbed-drivers does not provide feedback of the actual baud rate selected by hardware. Reporting of errors in this scenario requires one of three approaches:
- assert that baud rate is out of tolerance
- return an error code when baud rate is out of tolerance
- provide a query mechanism for baud rates.
cc @mjs-arm @niklas-arm @bogdanm @0xc0170