diff options
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/platforms/STM32/USARTv1/uart_lld.h | 4 |
1 files 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 7df68d3c7..021e0bc37 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(STM32F2XX) || !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(STM32F2XX) || !defined(STM32F4XX)
+ #if !defined(STM32F2XX) && !defined(STM32F4XX)
#error "UART5 DMA access not supported in this platform"
#endif
#endif
|