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