diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-11-04 09:40:51 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-11-04 09:40:51 +0000 |
commit | efb5332373ccaa36b2d2e465b3bceb2b7f4b7655 (patch) | |
tree | 58e3a6adbd48cfb42d6d4dfe4ae36d362b00fc44 /os/nil/ports/AVR | |
parent | 8b0021db47f08c7523609987d87be34176bbe9d4 (diff) | |
download | ChibiOS-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/AVR')
-rw-r--r-- | os/nil/ports/AVR/compilers/GCC/niltypes.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/os/nil/ports/AVR/compilers/GCC/niltypes.h b/os/nil/ports/AVR/compilers/GCC/niltypes.h index 022ec9d56..a5a74d48f 100644 --- a/os/nil/ports/AVR/compilers/GCC/niltypes.h +++ b/os/nil/ports/AVR/compilers/GCC/niltypes.h @@ -59,6 +59,15 @@ typedef int8_t cnt_t; /**< Generic signed counter. */ typedef uint8_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.
*/
|