aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel/include/chstats.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/kernel/include/chstats.h')
-rw-r--r--os/kernel/include/chstats.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/os/kernel/include/chstats.h b/os/kernel/include/chstats.h
index a94a84814..dee5c9bec 100644
--- a/os/kernel/include/chstats.h
+++ b/os/kernel/include/chstats.h
@@ -39,6 +39,10 @@
/* Module pre-compile time settings. */
/*===========================================================================*/
+#if !CH_CFG_USE_TM
+#error "CH_DBG_STATISTICS requires CH_CFG_USE_TM"
+#endif
+
/*===========================================================================*/
/* Derived constants and error checks. */
/*===========================================================================*/
@@ -84,6 +88,7 @@ extern kernel_stats_t kernel_stats;
#ifdef __cplusplus
extern "C" {
#endif
+ void _stats_init(void);
#ifdef __cplusplus
}
#endif