From 90a2b166cbcb5ca9a9110d579de30dac804e2f12 Mon Sep 17 00:00:00 2001 From: Rocco Marco Guglielmi Date: Fri, 13 May 2016 12:46:36 +0000 Subject: Added support for UART4 and UART5 in STM32L1xx Category 5 devices git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9476 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/LLD/USARTv1/hal_uart_lld.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'os/hal/ports/STM32/LLD/USARTv1/hal_uart_lld.h') diff --git a/os/hal/ports/STM32/LLD/USARTv1/hal_uart_lld.h b/os/hal/ports/STM32/LLD/USARTv1/hal_uart_lld.h index 14966216d..8f4c34efe 100644 --- a/os/hal/ports/STM32/LLD/USARTv1/hal_uart_lld.h +++ b/os/hal/ports/STM32/LLD/USARTv1/hal_uart_lld.h @@ -226,7 +226,8 @@ #error "UART4 not present in the selected device" #endif -#if !defined(STM32F2XX) && !defined(STM32F4XX) +#if !defined(STM32F2XX) && !defined(STM32F4XX) && !defined(STM32L151xE) && \ + !defined(STM32L152xE) && !defined(STM32L162xE) #error "UART4 DMA access not supported in this platform" #endif #endif /* STM32_UART_USE_UART4 */ @@ -236,7 +237,8 @@ #error "UART5 not present in the selected device" #endif -#if !defined(STM32F2XX) && !defined(STM32F4XX) +#if !defined(STM32F2XX) && !defined(STM32F4XX) && !defined(STM32L151xE) && \ + !defined(STM32L152xE) && !defined(STM32L162xE) #error "UART5 DMA access not supported in this platform" #endif #endif /* STM32_UART_USE_UART5 */ -- cgit v1.2.3