diff options
-rw-r--r-- | os/rt/include/chvt.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/os/rt/include/chvt.h b/os/rt/include/chvt.h index 447a7447d..d4948f1d6 100644 --- a/os/rt/include/chvt.h +++ b/os/rt/include/chvt.h @@ -41,6 +41,10 @@ /* Derived constants and error checks. */
/*===========================================================================*/
+#if CH_CFG_ST_FREQUENCY <= 0
+#error "invalid CH_CFG_ST_FREQUENCY specified"
+#endif
+
#if (CH_CFG_TIMEDELTA < 0) || (CH_CFG_TIMEDELTA == 1)
#error "invalid CH_CFG_TIMEDELTA specified"
#endif
|