Skip to content

Commit

Permalink
Support extra baudrate 921600, 460800, 230400 (#85)
Browse files Browse the repository at this point in the history
Implement suggestion from @weixiongmei by adding more baud rate support listed in HAL_UART of LinkIt SDK.
  • Loading branch information
pablosun authored Jan 10, 2018
1 parent 47a16e2 commit c297631
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ static hal_uart_baudrate_t uart_translate_baudrate(const uint32_t baudrate)
return HAL_UART_BAUDRATE_57600;
case 115200:
return HAL_UART_BAUDRATE_115200;
case 230400:
return HAL_UART_BAUDRATE_230400;
case 460800:
return HAL_UART_BAUDRATE_460800;
case 921600:
return HAL_UART_BAUDRATE_921600;
default:
return HAL_UART_BAUDRATE_MAX;
}
Expand Down

0 comments on commit c297631

Please sign in to comment.