diff options
Diffstat (limited to 'os/hal/templates/uart_lld.h')
-rw-r--r-- | os/hal/templates/uart_lld.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/os/hal/templates/uart_lld.h b/os/hal/templates/uart_lld.h index 2a3128941..13d105b16 100644 --- a/os/hal/templates/uart_lld.h +++ b/os/hal/templates/uart_lld.h @@ -25,7 +25,7 @@ #ifndef _UART_LLD_H_
#define _UART_LLD_H_
-#if HAL_USE_UART || defined(__DOXYGEN__)
+#if (HAL_USE_UART == TRUE) || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver constants. */
@@ -42,6 +42,7 @@ /**
* @brief UART driver enable switch.
* @details If set to @p TRUE the support for UART1 is included.
+ * @note The default is @p FALSE.
*/
#if !defined(PLATFORM_UART_USE_UART1) || defined(__DOXYGEN__)
#define PLATFORM_UART_USE_UART1 FALSE
@@ -156,7 +157,7 @@ struct UARTDriver { /* External declarations. */
/*===========================================================================*/
-#if PLATFORM_UART_USE_UART1 && !defined(__DOXYGEN__)
+#if (PLATFORM_UART_USE_UART1 == TRUE) && !defined(__DOXYGEN__)
extern UARTDriver UARTD1;
#endif
@@ -174,7 +175,7 @@ extern "C" { }
#endif
-#endif /* HAL_USE_UART */
+#endif /* HAL_USE_UART == TRUE */
#endif /* _UART_LLD_H_ */
|