CreatorDev / LetMeCreateIoT

LetMeCreate library for the PIC32MX clicker
BSD 3-Clause "New" or "Revised" License
5 stars 8 forks source link

uart: Returns actual baudrate in uart_get_baudrate #17

Closed ghost closed 7 years ago

ghost commented 7 years ago

The UART module cannot always be set to any specific baudrate which means that the uart_get_baudrate was returning the desired baudrate instead of the actual baudrate.

This commit computes the baudrate from UART3 registers in uart_get_baudrate and removes the current_baud_rate variable.

Signed-off-by: Francois Berder francois.berder@imgtec.com

ghost commented 7 years ago

Closing this pr because this code breaks compatibility with LetMeCreate.