From abcbd3d852bafa66df6f7656bc15049fc9ae93b6 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 10 Dec 2019 08:29:13 +0000 Subject: [PATCH] USARTv1-related fixes. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13215 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/hal/ports/STM32/LLD/USARTv1/hal_uart_lld.c | 5 +++-- testhal/STM32/multi/UART/cfg/stm32f407_discovery/portab.c | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/os/hal/ports/STM32/LLD/USARTv1/hal_uart_lld.c b/os/hal/ports/STM32/LLD/USARTv1/hal_uart_lld.c index 0619b020c..eaaeeda36 100644 --- a/os/hal/ports/STM32/LLD/USARTv1/hal_uart_lld.c +++ b/os/hal/ports/STM32/LLD/USARTv1/hal_uart_lld.c @@ -350,8 +350,9 @@ static void serve_usart_irq(UARTDriver *uartp) { } /* Timeout interrupt sources are only checked if enabled in CR1.*/ - if ((cr1 & USART_CR1_IDLEIE) && (sr & USART_SR_IDLE)) - _uart_timeout_isr_code(uartp); + if ((cr1 & USART_CR1_IDLEIE) && (sr & USART_SR_IDLE)) { + _uart_timeout_isr_code(uartp); + } } /*===========================================================================*/ diff --git a/testhal/STM32/multi/UART/cfg/stm32f407_discovery/portab.c b/testhal/STM32/multi/UART/cfg/stm32f407_discovery/portab.c index 76d1f193c..5962bfc0b 100644 --- a/testhal/STM32/multi/UART/cfg/stm32f407_discovery/portab.c +++ b/testhal/STM32/multi/UART/cfg/stm32f407_discovery/portab.c @@ -49,6 +49,7 @@ UARTConfig uart_cfg_1 = { NULL, NULL, NULL, + NULL, 38400, 0, USART_CR2_LINEN,