diff options
Diffstat (limited to 'os/hal/ports/STM32')
-rw-r--r-- | os/hal/ports/STM32/LLD/USARTv1/uart_lld.h | 4 | ||||
-rw-r--r-- | os/hal/ports/STM32/LLD/USARTv2/uart_lld.h | 4 | ||||
-rw-r--r-- | os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c | 4 | ||||
-rw-r--r-- | os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.h | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/os/hal/ports/STM32/LLD/USARTv1/uart_lld.h b/os/hal/ports/STM32/LLD/USARTv1/uart_lld.h index fee0d1413..a64b65150 100644 --- a/os/hal/ports/STM32/LLD/USARTv1/uart_lld.h +++ b/os/hal/ports/STM32/LLD/USARTv1/uart_lld.h @@ -524,7 +524,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.
*/
@@ -538,7 +538,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.
*/
diff --git a/os/hal/ports/STM32/LLD/USARTv2/uart_lld.h b/os/hal/ports/STM32/LLD/USARTv2/uart_lld.h index 395cb3054..708857bd3 100644 --- a/os/hal/ports/STM32/LLD/USARTv2/uart_lld.h +++ b/os/hal/ports/STM32/LLD/USARTv2/uart_lld.h @@ -623,7 +623,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.
*/
@@ -637,7 +637,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.
*/
diff --git a/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c b/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c index d3ff1600d..50b5a95de 100644 --- a/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c +++ b/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c @@ -24,7 +24,7 @@ #include "hal.h"
-#if HAL_USE_WDG || defined(__DOXYGEN__)
+#if (HAL_USE_WDG == TRUE) || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver local definitions. */
@@ -135,6 +135,6 @@ void wdg_lld_reset(WDGDriver * wdgp) { wdgp->wdg->KR = KR_KEY_RELOAD;
}
-#endif /* HAL_USE_WDG */
+#endif /* HAL_USE_WDG == TRUE */
/** @} */
diff --git a/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.h b/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.h index 8c108b5dd..8d2786f63 100644 --- a/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.h +++ b/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.h @@ -25,7 +25,7 @@ #ifndef _WDG_LLD_H_
#define _WDG_LLD_H_
-#if HAL_USE_WDG || defined(__DOXYGEN__)
+#if (HAL_USE_WDG == TRUE) || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver constants. */
@@ -176,7 +176,7 @@ extern "C" { }
#endif
-#endif /* HAL_USE_WDG */
+#endif /* HAL_USE_WDG == TRUE */
#endif /* _WDG_LLD_H_ */
|