[bug] 修复drv_usart_v2.c
This commit is contained in:
parent
9c6d8d96ce
commit
731bb8ba87
@ -142,7 +142,7 @@ static void ra_uart_get_config(void)
|
||||
uart_obj[UART3_INDEX].uart_dma_flag = 0;
|
||||
|
||||
uart_obj[UART3_INDEX].serial.config.rx_bufsz = BSP_UART3_RX_BUFSIZE;
|
||||
uart_obj[UART3_INDEX].serial.config.tx_bufsz = BSP_UART0_TX_BUFSIZE;
|
||||
uart_obj[UART3_INDEX].serial.config.tx_bufsz = BSP_UART3_TX_BUFSIZE;
|
||||
#endif
|
||||
|
||||
#ifdef BSP_USING_UART4
|
||||
@ -153,6 +153,14 @@ static void ra_uart_get_config(void)
|
||||
uart_obj[UART4_INDEX].serial.config.tx_bufsz = BSP_UART4_TX_BUFSIZE;
|
||||
#endif
|
||||
|
||||
#ifdef BSP_USING_UART5
|
||||
uart_obj[UART5_INDEX].serial.config = config;
|
||||
uart_obj[UART5_INDEX].uart_dma_flag = 0;
|
||||
|
||||
uart_obj[UART5_INDEX].serial.config.rx_bufsz = BSP_UART5_RX_BUFSIZE;
|
||||
uart_obj[UART5_INDEX].serial.config.tx_bufsz = BSP_UART5_TX_BUFSIZE;
|
||||
#endif
|
||||
|
||||
#ifdef BSP_USING_UART6
|
||||
uart_obj[UART6_INDEX].serial.config = config;
|
||||
uart_obj[UART6_INDEX].uart_dma_flag = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user