summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/arm')
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_serial.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_serial.c b/nuttx/arch/arm/src/stm32/stm32_serial.c
index f5fc1d5da..f589f18cb 100644
--- a/nuttx/arch/arm/src/stm32/stm32_serial.c
+++ b/nuttx/arch/arm/src/stm32/stm32_serial.c
@@ -64,14 +64,12 @@
/****************************************************************************
* Definitions
****************************************************************************/
-
/* Some sanity checks *******************************************************/
-
/* Is there a USART enabled? */
-#if defined(CONFIG_STM32_USART1) && defined(CONFIG_STM32_USART2) && \
- defined(CONFIG_STM32_USART3) && defined(CONFIG_STM32_UART4) && \
- defined(CONFIG_STM32_UART5) && defined(CONFIG_STM32_USART6)
+#if defined(CONFIG_STM32_USART1) || defined(CONFIG_STM32_USART2) || \
+ defined(CONFIG_STM32_USART3) || defined(CONFIG_STM32_UART4) || \
+ defined(CONFIG_STM32_UART5) || defined(CONFIG_STM32_USART6)
# define HAVE_UART 1
#endif