diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-09-03 08:48:20 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-09-03 08:48:20 +0000 |
commit | 9d0c6fb8bf7bf63c137d7c19fdefc7760d2f133a (patch) | |
tree | 86acab83e6b86703239954be6d8240cf49accb8b /os/rt/ports/ARMCMx/compilers/GCC/chtypes.h | |
parent | 156a195bf72bd366f91e03c170ad4b344797778a (diff) | |
download | ChibiOS-9d0c6fb8bf7bf63c137d7c19fdefc7760d2f133a.tar.gz ChibiOS-9d0c6fb8bf7bf63c137d7c19fdefc7760d2f133a.tar.bz2 ChibiOS-9d0c6fb8bf7bf63c137d7c19fdefc7760d2f133a.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6250 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/ports/ARMCMx/compilers/GCC/chtypes.h')
-rw-r--r-- | os/rt/ports/ARMCMx/compilers/GCC/chtypes.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/os/rt/ports/ARMCMx/compilers/GCC/chtypes.h b/os/rt/ports/ARMCMx/compilers/GCC/chtypes.h index 26a1e5c81..bc33d2e10 100644 --- a/os/rt/ports/ARMCMx/compilers/GCC/chtypes.h +++ b/os/rt/ports/ARMCMx/compilers/GCC/chtypes.h @@ -33,7 +33,24 @@ #include <stdint.h>
#include <stdbool.h>
-typedef bool bool_t; /**< Fast boolean type. */
+/**
+ * @name Common constants
+ */
+/**
+ * @brief Generic 'false' boolean constant.
+ */
+#if !defined(FALSE) || defined(__DOXYGEN__)
+#define FALSE 0
+#endif
+
+/**
+ * @brief Generic 'true' boolean constant.
+ */
+#if !defined(TRUE) || defined(__DOXYGEN__)
+#define TRUE (!FALSE)
+#endif
+/** @} */
+
typedef uint32_t systime_t; /**< System time. */
typedef uint32_t rtcnt_t; /**< Realtime counter. */
typedef uint64_t rttime_t; /**< Time accumulator. */
|