diff options
author | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-05-13 12:46:36 +0000 |
---|---|---|
committer | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-05-13 12:46:36 +0000 |
commit | 90a2b166cbcb5ca9a9110d579de30dac804e2f12 (patch) | |
tree | c7e8ced6f593df2dd14092bc712c16bb344a1ec4 /os/hal/ports/STM32/LLD | |
parent | 5ea09ccb8f302e4f5017edd1889521cd3c94be56 (diff) | |
download | ChibiOS-90a2b166cbcb5ca9a9110d579de30dac804e2f12.tar.gz ChibiOS-90a2b166cbcb5ca9a9110d579de30dac804e2f12.tar.bz2 ChibiOS-90a2b166cbcb5ca9a9110d579de30dac804e2f12.zip |
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
Diffstat (limited to 'os/hal/ports/STM32/LLD')
-rw-r--r-- | os/hal/ports/STM32/LLD/USARTv1/hal_uart_lld.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 */
|