uart: add default source clock for all targets

This commit is contained in:
morris
2022-04-29 12:10:05 +08:00
parent 660ff8e840
commit 722fde218d
39 changed files with 152 additions and 128 deletions

View File

@@ -96,7 +96,7 @@ static void uart1_init(void)
.parity = UART_PARITY_DISABLE,
.stop_bits = UART_STOP_BITS_1,
.flow_ctrl = UART_HW_FLOWCTRL_DISABLE,
.source_clk = UART_SCLK_APB,
.source_clk = UART_SCLK_DEFAULT,
};
uart_driver_install(UART_NUM_1, 256, 0, 0, NULL, 0);
uart_param_config(UART_NUM_1, &uart_config);