Explorar o código

update:uart使用XTAL时钟源

Dozingfiretruck %!s(int64=3) %!d(string=hai) anos
pai
achega
2a986ccf6c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      luatos/components/luat/port/luat_uart_idf5.c

+ 1 - 1
luatos/components/luat/port/luat_uart_idf5.c

@@ -98,7 +98,7 @@ int luat_uart_setup(luat_uart_t *uart){
     }
     uart_config.stop_bits = uart->stop_bits;
     uart_config.flow_ctrl = UART_HW_FLOWCTRL_DISABLE;
-    uart_config.source_clk = UART_SCLK_APB;
+    uart_config.source_clk = UART_SCLK_XTAL;
     switch (id){
     case 0:
         if (uart_port[id].xHandle==NULL){