diff options
Diffstat (limited to 'os/hal/templates/uart_lld.h')
-rw-r--r-- | os/hal/templates/uart_lld.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/templates/uart_lld.h b/os/hal/templates/uart_lld.h index 0451dcb21..d17b71a1a 100644 --- a/os/hal/templates/uart_lld.h +++ b/os/hal/templates/uart_lld.h @@ -143,7 +143,7 @@ struct UARTDriver { * @brief Current configuration data.
*/
const UARTConfig *config;
-#if UART_USE_WAIT || defined(__DOXYGEN__)
+#if (UART_USE_WAIT == TRUE) || defined(__DOXYGEN__)
/**
* @brief Synchronization flag for transmit operations.
*/
@@ -157,7 +157,7 @@ struct UARTDriver { */
thread_reference_t threadtx;
#endif /* UART_USE_WAIT */
-#if UART_USE_MUTUAL_EXCLUSION || defined(__DOXYGEN__)
+#if (UART_USE_MUTUAL_EXCLUSION == TRUE) || defined(__DOXYGEN__)
/**
* @brief Mutex protecting the peripheral.
*/
|