aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates/hal_qspi_lld.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-02-05 15:08:12 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-02-05 15:08:12 +0000
commit5995950eb617d50beb043576eccf6f112bce188e (patch)
treed04e51caba669f3af46b84743d05882d42a77349 /os/hal/templates/hal_qspi_lld.h
parent1474f60da3ac5bf5bc04eddfea7e3d41b1932658 (diff)
downloadChibiOS-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/templates/hal_qspi_lld.h')
-rw-r--r--os/hal/templates/hal_qspi_lld.h8
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