From eaff37e21f8be53f8dd1f0233c6142c32cd3b788 Mon Sep 17 00:00:00 2001 From: Maciej Debski Date: Wed, 9 Aug 2017 11:23:04 +0200 Subject: [PATCH] drivers: serial: provide support for stm32f0. Fixes #3923 Signed-off-by: Maciej Debski Signed-off-by: Neil Armstrong --- drivers/serial/uart_stm32.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/serial/uart_stm32.c b/drivers/serial/uart_stm32.c index 9c1044df6d9..16b10fe2d29 100644 --- a/drivers/serial/uart_stm32.c +++ b/drivers/serial/uart_stm32.c @@ -172,7 +172,9 @@ static void uart_stm32_irq_err_enable(struct device *dev) /* Enable FE, ORE interruptions */ LL_USART_EnableIT_ERROR(UartInstance); /* Enable Line break detection */ +#ifndef CONFIG_SOC_STM32F030X8 LL_USART_EnableIT_LBD(UartInstance); +#endif /* Enable parity error interruption */ LL_USART_EnableIT_PE(UartInstance); } @@ -184,7 +186,9 @@ static void uart_stm32_irq_err_disable(struct device *dev) /* Enable FE, ORE interruptions */ LL_USART_DisableIT_ERROR(UartInstance); /* Enable Line break detection */ +#ifndef CONFIG_SOC_STM32F030X8 LL_USART_DisableIT_LBD(UartInstance); +#endif /* Enable parity error interruption */ LL_USART_DisableIT_PE(UartInstance); }