aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-09-12 13:33:12 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-09-12 13:33:12 +0000
commit232ae706e91fb0113591dab7116965c7c2b09351 (patch)
tree0678c9f172f87085b8f4e13b5274ac34c0d12430 /os/rt
parent7404ce9c286b2a6076d4e8a290b6276ce422cc38 (diff)
downloadChibiOS-232ae706e91fb0113591dab7116965c7c2b09351.tar.gz
ChibiOS-232ae706e91fb0113591dab7116965c7c2b09351.tar.bz2
ChibiOS-232ae706e91fb0113591dab7116965c7c2b09351.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6295 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt')
-rw-r--r--os/rt/osal/osal.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/os/rt/osal/osal.h b/os/rt/osal/osal.h
index 04b9ba76a..edaa34547 100644
--- a/os/rt/osal/osal.h
+++ b/os/rt/osal/osal.h
@@ -86,6 +86,13 @@
/** @} */
/**
+ * @name Systick resolution.
+ * @{
+ */
+#define OSAL_ST_RESOLUTION CH_CFG_ST_RESOLUTION
+/** @} */
+
+/**
* @brief Systick mode required by the underlying OS.
*/
#if (CH_CFG_ST_TIMEDELTA == 0) || defined(__DOXYGEN__)
@@ -113,6 +120,10 @@
#error "invalid OSAL_ST_MODE setting in osal.h"
#endif
+#if (OSAL_ST_RESOLUTION != 16) && (OSAL_ST_RESOLUTION != 32)
+#error "invalid OSAL_ST_RESOLUTION, must be 16 or 32"
+#endif
+
/*===========================================================================*/
/* Module data structures and types. */
/*===========================================================================*/