diff options
Diffstat (limited to 'os/hal/templates/hal_qspi_lld.h')
-rw-r--r-- | os/hal/templates/hal_qspi_lld.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/templates/hal_qspi_lld.h b/os/hal/templates/hal_qspi_lld.h index 18e07f9e6..b36b228c1 100644 --- a/os/hal/templates/hal_qspi_lld.h +++ b/os/hal/templates/hal_qspi_lld.h @@ -25,7 +25,7 @@ #ifndef HAL_QSPI_LLD_H
#define HAL_QSPI_LLD_H
-#if HAL_USE_QSPI || defined(__DOXYGEN__)
+#if (HAL_USE_QSPI == TRUE) || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver constants. */
@@ -100,13 +100,13 @@ struct QSPIDriver { * @brief Current configuration data.
*/
const QSPIConfig *config;
-#if QSPI_USE_WAIT || defined(__DOXYGEN__)
+#if (QSPI_USE_WAIT == TRUE) || defined(__DOXYGEN__)
/**
* @brief Waiting thread.
*/
thread_reference_t thread;
#endif /* QSPI_USE_WAIT */
-#if QSPI_USE_MUTUAL_EXCLUSION || defined(__DOXYGEN__)
+#if (QSPI_USE_MUTUAL_EXCLUSION == TRUE) || defined(__DOXYGEN__)
/**
* @brief Mutex protecting the peripheral.
*/
@@ -126,7 +126,7 @@ struct QSPIDriver { /* External declarations. */
/*===========================================================================*/
-#if PLATFORM_QSPI_USE_QSPI1 && !defined(__DOXYGEN__)
+#if (PLATFORM_QSPI_USE_QSPI1 == TRUE) && !defined(__DOXYGEN__)
extern QSPIDriver QSPID1;
#endif
|