From f58c72fe8597f40c0410e5f005c36942d532f081 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 30 Sep 2013 12:55:30 +0000 Subject: [PATCH] Fixed wrong compile time check. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6335 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/USARTv1/uart_lld.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os/hal/platforms/STM32/USARTv1/uart_lld.h b/os/hal/platforms/STM32/USARTv1/uart_lld.h index ba8f00f1e..7df68d3c7 100644 --- a/os/hal/platforms/STM32/USARTv1/uart_lld.h +++ b/os/hal/platforms/STM32/USARTv1/uart_lld.h @@ -339,7 +339,7 @@ #error "UART4 not present in the selected device" #endif - #if !defined(STM32F4XX) || !defined(STM32F4XX) + #if !defined(STM32F2XX) || !defined(STM32F4XX) #error "UART4 DMA access not supported in this platform" #endif #endif @@ -349,7 +349,7 @@ #error "UART5 not present in the selected device" #endif - #if !defined(STM32F4XX) || !defined(STM32F4XX) + #if !defined(STM32F2XX) || !defined(STM32F4XX) #error "UART5 DMA access not supported in this platform" #endif #endif