aboutsummaryrefslogtreecommitdiffstats
path: root/os/nil/ports/e200/compilers/GCC/niltypes.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-11-04 09:40:51 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-11-04 09:40:51 +0000
commitefb5332373ccaa36b2d2e465b3bceb2b7f4b7655 (patch)
tree58e3a6adbd48cfb42d6d4dfe4ae36d362b00fc44 /os/nil/ports/e200/compilers/GCC/niltypes.h
parent8b0021db47f08c7523609987d87be34176bbe9d4 (diff)
downloadChibiOS-efb5332373ccaa36b2d2e465b3bceb2b7f4b7655.tar.gz
ChibiOS-efb5332373ccaa36b2d2e465b3bceb2b7f4b7655.tar.bz2
ChibiOS-efb5332373ccaa36b2d2e465b3bceb2b7f4b7655.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7473 35acf78f-673a-0410-8e92-d51de3d6d3f4
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.
*/