From cbc6cc15187483ea809552e03aa23ef3df004439 Mon Sep 17 00:00:00 2001 From: Sergi Hernandez Juan <shernand@iri.upc.edu> Date: Thu, 2 Apr 2020 23:07:34 +0200 Subject: [PATCH] Solved some minor errors. --- f1/usart/src/usart3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/f1/usart/src/usart3.c b/f1/usart/src/usart3.c index d5db37c..3853320 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); } -- GitLab