Skip to content
Snippets Groups Projects
Commit cbc6cc15 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Solved some minor errors.

parent 95fa931b
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment