aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/include/chstats.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/rt/include/chstats.h')
-rw-r--r--os/rt/include/chstats.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/os/rt/include/chstats.h b/os/rt/include/chstats.h
index 0c4155662..c2405e444 100644
--- a/os/rt/include/chstats.h
+++ b/os/rt/include/chstats.h
@@ -28,7 +28,7 @@
#ifndef _CHSTATS_H_
#define _CHSTATS_H_
-#if CH_DBG_STATISTICS || defined(__DOXYGEN__)
+#if (CH_DBG_STATISTICS == TRUE) || defined(__DOXYGEN__)
/*===========================================================================*/
/* Module constants. */
@@ -38,7 +38,7 @@
/* Module pre-compile time settings. */
/*===========================================================================*/
-#if !CH_CFG_USE_TM
+#if CH_CFG_USE_TM == FALSE
#error "CH_DBG_STATISTICS requires CH_CFG_USE_TM"
#endif
@@ -88,7 +88,7 @@ extern "C" {
/* Module inline functions. */
/*===========================================================================*/
-#else /* !CH_DBG_STATISTICS */
+#else /* CH_DBG_STATISTICS == FALSE */
/* Stub functions for when the statistics module is disabled. */
#define _stats_increase_irq()
@@ -98,7 +98,7 @@ extern "C" {
#define _stats_start_measure_crit_isr()
#define _stats_stop_measure_crit_isr()
-#endif /* !CH_DBG_STATISTICS */
+#endif /* CH_DBG_STATISTICS == FALSE */
#endif /* _CHSTATS_H_ */