From 232ae706e91fb0113591dab7116965c7c2b09351 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 12 Sep 2013 13:33:12 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6295 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/osal/osal.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'os/rt') 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 @@ -85,6 +85,13 @@ #define OSAL_ST_MODE_FREERUNNING 2 /** @} */ +/** + * @name Systick resolution. + * @{ + */ +#define OSAL_ST_RESOLUTION CH_CFG_ST_RESOLUTION +/** @} */ + /** * @brief Systick mode required by the underlying OS. */ @@ -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. */ /*===========================================================================*/ -- cgit v1.2.3