diff options
Diffstat (limited to 'os/rt/include/chsem.h')
-rw-r--r-- | os/rt/include/chsem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/rt/include/chsem.h b/os/rt/include/chsem.h index 7d449f65f..51a29e0f2 100644 --- a/os/rt/include/chsem.h +++ b/os/rt/include/chsem.h @@ -28,7 +28,7 @@ #ifndef _CHSEM_H_
#define _CHSEM_H_
-#if CH_CFG_USE_SEMAPHORES || defined(__DOXYGEN__)
+#if (CH_CFG_USE_SEMAPHORES == TRUE) || defined(__DOXYGEN__)
/*===========================================================================*/
/* Module constants. */
@@ -153,7 +153,7 @@ static inline cnt_t chSemGetCounterI(semaphore_t *sp) { return sp->s_cnt;
}
-#endif /* CH_CFG_USE_SEMAPHORES */
+#endif /* CH_CFG_USE_SEMAPHORES == TRUE */
#endif /* _CHSEM_H_ */
|