diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-02-05 15:08:12 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-02-05 15:08:12 +0000 |
commit | 5995950eb617d50beb043576eccf6f112bce188e (patch) | |
tree | d04e51caba669f3af46b84743d05882d42a77349 /os/hal/ports/STM32/LLD/QUADSPIv1/hal_qspi_lld.h | |
parent | 1474f60da3ac5bf5bc04eddfea7e3d41b1932658 (diff) | |
download | ChibiOS-5995950eb617d50beb043576eccf6f112bce188e.tar.gz ChibiOS-5995950eb617d50beb043576eccf6f112bce188e.tar.bz2 ChibiOS-5995950eb617d50beb043576eccf6f112bce188e.zip |
MISRA-related fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10085 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/LLD/QUADSPIv1/hal_qspi_lld.h')
-rw-r--r-- | os/hal/ports/STM32/LLD/QUADSPIv1/hal_qspi_lld.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/ports/STM32/LLD/QUADSPIv1/hal_qspi_lld.h b/os/hal/ports/STM32/LLD/QUADSPIv1/hal_qspi_lld.h index 0aacca1ba..fe7b31a61 100644 --- a/os/hal/ports/STM32/LLD/QUADSPIv1/hal_qspi_lld.h +++ b/os/hal/ports/STM32/LLD/QUADSPIv1/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. */
@@ -211,13 +211,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.
*/
@@ -249,7 +249,7 @@ struct QSPIDriver { /* External declarations. */
/*===========================================================================*/
-#if STM32_QSPI_USE_QUADSPI1 && !defined(__DOXYGEN__)
+#if (STM32_QSPI_USE_QUADSPI1 == TRUE) && !defined(__DOXYGEN__)
extern QSPIDriver QSPID1;
#endif
|