aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/include
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-09-11 13:19:35 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-09-11 13:19:35 +0000
commit7404ce9c286b2a6076d4e8a290b6276ce422cc38 (patch)
tree2c6b50215ba0885e8645eb4ce349ce9af2b24d25 /os/rt/include
parent0f341a84ecbffa235bf0d2f461181deaad92bf2f (diff)
downloadChibiOS-7404ce9c286b2a6076d4e8a290b6276ce422cc38.tar.gz
ChibiOS-7404ce9c286b2a6076d4e8a290b6276ce422cc38.tar.bz2
ChibiOS-7404ce9c286b2a6076d4e8a290b6276ce422cc38.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6294 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/include')
-rw-r--r--os/rt/include/chvt.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/os/rt/include/chvt.h b/os/rt/include/chvt.h
index 712aff699..fa859e8fe 100644
--- a/os/rt/include/chvt.h
+++ b/os/rt/include/chvt.h
@@ -41,12 +41,17 @@
/* Derived constants and error checks. */
/*===========================================================================*/
+#if (CH_CFG_ST_RESOLUTION != 16) && (CH_CFG_ST_RESOLUTION != 32)
+#error "invalid CH_CFG_ST_RESOLUTION specified, must be 16 or 32"
+#endif
+
#if CH_CFG_ST_FREQUENCY <= 0
-#error "invalid CH_CFG_ST_FREQUENCY specified"
+#error "invalid CH_CFG_ST_FREQUENCY specified, must be greated than zero"
#endif
#if (CH_CFG_ST_TIMEDELTA < 0) || (CH_CFG_ST_TIMEDELTA == 1)
-#error "invalid CH_CFG_ST_TIMEDELTA specified"
+#error "invalid CH_CFG_ST_TIMEDELTA specified, must " \
+ "be zero or greater than one"
#endif
#if (CH_CFG_ST_TIMEDELTA > 0) && (CH_CFG_TIME_QUANTUM > 0)