aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.c
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-05-27 15:55:29 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-05-27 15:55:29 +0000
commit5cb659cbc19c23e2ae27e4dd8ea736ed00230e23 (patch)
tree8f3ca65eb02cf760c0da60a6a0216207b54d477f /os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.c
parent0d9f42c9d9ce052f7ddf42174eafefae7516f99a (diff)
downloadChibiOS-5cb659cbc19c23e2ae27e4dd8ea736ed00230e23.tar.gz
ChibiOS-5cb659cbc19c23e2ae27e4dd8ea736ed00230e23.tar.bz2
ChibiOS-5cb659cbc19c23e2ae27e4dd8ea736ed00230e23.zip
Fixed bug #837.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10207 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.c')
-rw-r--r--os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.c b/os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.c
index 04e25d9c1..5bf3b6089 100644
--- a/os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.c
+++ b/os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.c
@@ -30,6 +30,20 @@
/* Driver local definitions. */
/*===========================================================================*/
+/* For compatibility for those devices without LIN support in the USARTs.*/
+#if !defined(USART_ISR_LBDF)
+#define USART_ISR_LBDF 0
+#endif
+
+#if !defined(USART_CR2_LBDIE)
+#define USART_CR2_LBDIE 0
+#endif
+
+/* STM32L0xx/STM32F7xx ST headers difference.*/
+#if !defined(USART_ISR_LBDF)
+#define USART_ISR_LBDF USART_ISR_LBD
+#endif
+
/* STM32L0xx/STM32F7xx ST headers difference.*/
#if !defined(USART_ISR_LBDF)
#define USART_ISR_LBDF USART_ISR_LBD