aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/include
diff options
context:
space:
mode:
Diffstat (limited to 'os/rt/include')
-rw-r--r--os/rt/include/ch.h2
-rw-r--r--os/rt/include/chsystypes.h9
2 files changed, 10 insertions, 1 deletions
diff --git a/os/rt/include/ch.h b/os/rt/include/ch.h
index 5e67aa202..d49aa21fb 100644
--- a/os/rt/include/ch.h
+++ b/os/rt/include/ch.h
@@ -63,8 +63,8 @@
/** @} */
/* Core headers.*/
-#include "chsystypes.h"
#include "chtypes.h"
+#include "chsystypes.h"
#include "chconf.h"
#include "chcore.h"
#include "chdebug.h"
diff --git a/os/rt/include/chsystypes.h b/os/rt/include/chsystypes.h
index 6cf0c147b..74a45b8a2 100644
--- a/os/rt/include/chsystypes.h
+++ b/os/rt/include/chsystypes.h
@@ -46,6 +46,15 @@
/*===========================================================================*/
/**
+ * @brief Type of system time.
+ */
+#if (CH_CFG_ST_RESOLUTION == 32) || defined(__DOXYGEN__)
+typedef uint32_t systime_t;
+#else
+typedef uint16_t systime_t;
+#endif
+
+/**
* @extends threads_queue_t
*
* @brief Type of a thread structure.