From b53489d0e4252aafe5ada7466e0b3b7c4ad5aaaf Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Thu, 5 Mar 2015 21:28:51 +0000 Subject: Lots of MISRA-related changes in RT. Not finished yet. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7715 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/include/chcond.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'os/rt/include/chcond.h') diff --git a/os/rt/include/chcond.h b/os/rt/include/chcond.h index e8759b8f8..e8620e9c5 100644 --- a/os/rt/include/chcond.h +++ b/os/rt/include/chcond.h @@ -31,7 +31,7 @@ #ifndef _CHCOND_H_ #define _CHCOND_H_ -#if CH_CFG_USE_CONDVARS || defined(__DOXYGEN__) +#if (CH_CFG_USE_CONDVARS == TRUE) || defined(__DOXYGEN__) /*===========================================================================*/ /* Module constants. */ @@ -45,7 +45,7 @@ /* Derived constants and error checks. */ /*===========================================================================*/ -#if !CH_CFG_USE_MUTEXES +#if CH_CFG_USE_MUTEXES == FALSE #error "CH_CFG_USE_CONDVARS requires CH_CFG_USE_MUTEXES" #endif @@ -97,7 +97,7 @@ extern "C" { void chCondBroadcastI(condition_variable_t *cp); msg_t chCondWait(condition_variable_t *cp); msg_t chCondWaitS(condition_variable_t *cp); -#if CH_CFG_USE_CONDVARS_TIMEOUT +#if CH_CFG_USE_CONDVARS_TIMEOUT == TRUE msg_t chCondWaitTimeout(condition_variable_t *cp, systime_t time); msg_t chCondWaitTimeoutS(condition_variable_t *cp, systime_t time); #endif @@ -109,7 +109,7 @@ extern "C" { /* Module inline functions. */ /*===========================================================================*/ -#endif /* CH_CFG_USE_CONDVARS */ +#endif /* CH_CFG_USE_CONDVARS == TRUE */ #endif /* _CHCOND_H_ */ -- cgit v1.2.3