drivers: serial: provide support for stm32f0.

Fixes #3923

Signed-off-by: Maciej Debski <maciej.debski@rndity.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
diff --git a/drivers/serial/uart_stm32.c b/drivers/serial/uart_stm32.c
index 9c1044d..16b10fe 100644
--- a/drivers/serial/uart_stm32.c
+++ b/drivers/serial/uart_stm32.c
@@ -172,7 +172,9 @@
 	/* 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 @@
 	/* 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);
 }