diff options
Diffstat (limited to 'os/rt/osal')
-rw-r--r-- | os/rt/osal/osal.h | 11 |
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. */
/*===========================================================================*/
|