utilize CIRCUITPY_CONSOLE_UART_BAUDRATE parameter

This commit is contained in:
RetiredWizard 2023-08-24 14:50:23 -04:00
parent af91625fb5
commit 8fbde14286

View File

@ -140,7 +140,7 @@ void serial_early_init(void) {
const mcu_pin_obj_t *console_tx = MP_OBJ_TO_PTR(CIRCUITPY_CONSOLE_UART_TX); const mcu_pin_obj_t *console_tx = MP_OBJ_TO_PTR(CIRCUITPY_CONSOLE_UART_TX);
common_hal_busio_uart_construct(&console_uart, console_tx, console_rx, NULL, NULL, NULL, common_hal_busio_uart_construct(&console_uart, console_tx, console_rx, NULL, NULL, NULL,
false, 115200, 8, BUSIO_UART_PARITY_NONE, 1, 1.0f, sizeof(console_uart_rx_buf), false, CIRCUITPY_CONSOLE_UART_BAUDRATE, 8, BUSIO_UART_PARITY_NONE, 1, 1.0f, sizeof(console_uart_rx_buf),
console_uart_rx_buf, true); console_uart_rx_buf, true);
common_hal_busio_uart_never_reset(&console_uart); common_hal_busio_uart_never_reset(&console_uart);