aboutsummaryrefslogtreecommitdiffstats
path: root/os/nil/ports/e200/compilers/GCC/niltypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/nil/ports/e200/compilers/GCC/niltypes.h')
-rw-r--r--os/nil/ports/e200/compilers/GCC/niltypes.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/os/nil/ports/e200/compilers/GCC/niltypes.h b/os/nil/ports/e200/compilers/GCC/niltypes.h
index 6ea0f76de..1b9267801 100644
--- a/os/nil/ports/e200/compilers/GCC/niltypes.h
+++ b/os/nil/ports/e200/compilers/GCC/niltypes.h
@@ -59,6 +59,15 @@ typedef int32_t cnt_t; /**< Generic signed counter. */
typedef uint32_t ucnt_t; /**< Generic unsigned counter. */
/**
+ * @brief Type of system time.
+ */
+#if (NIL_CFG_ST_RESOLUTION == 32) || defined(__DOXYGEN__)
+typedef uint32_t systime_t;
+#else
+typedef uint16_t systime_t;
+#endif
+
+/**
* @brief ROM constant modifier.
* @note It is set to use the "const" keyword in this port.
*/