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>
This commit is contained in:
Maciej Debski 2017-08-09 11:23:04 +02:00 committed by Kumar Gala
parent f93e0bed4b
commit eaff37e21f
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}