diff --git a/f1/usart/src/usart3.c b/f1/usart/src/usart3.c index d5db37c567557dd668a7f5f6bc72921a9cf9843d..3853320bf2601c0c6416306af520f6fb1a77c647 100644 --- a/f1/usart/src/usart3.c +++ b/f1/usart/src/usart3.c @@ -191,7 +191,7 @@ void usart3_init(TComm *comm_dev,UART_InitTypeDef *conf,TUART_IRQ_Priorities *pr UART_ENABLE_CLK; - Uart3Handle.Instance = UART3; + Uart3Handle.Instance = UART; usart3_config(comm_dev,conf); if(comm_dev->use_dma) @@ -255,7 +255,7 @@ void usart3_config(TComm *comm_dev,UART_InitTypeDef *conf) Uart3Handle.Init.StopBits = conf->StopBits; Uart3Handle.Init.Parity = conf->Parity; Uart3Handle.Init.Mode = conf->Mode; - Uart3Handle.Init.HwFlowCtrl = conf->HwFlowCtl; + Uart3Handle.Init.HwFlowCtl = conf->HwFlowCtl; Uart3Handle.Init.OverSampling = conf->OverSampling; HAL_UART_Init(&Uart3Handle); }