diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-02-26 14:50:16 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-02-26 14:50:16 +0000 |
commit | 9c56bcc138b4646e0e6777a3b53afe8e40c9823b (patch) | |
tree | 0e0931b1059eb4cd3d289de13221b5aea8ac327b /os/ports/RC | |
parent | dedffdd99c7b04a7440f86b387a5d8c92eac413a (diff) | |
download | ChibiOS-9c56bcc138b4646e0e6777a3b53afe8e40c9823b.tar.gz ChibiOS-9c56bcc138b4646e0e6777a3b53afe8e40c9823b.tar.bz2 ChibiOS-9c56bcc138b4646e0e6777a3b53afe8e40c9823b.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5333 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ports/RC')
-rw-r--r-- | os/ports/RC/STM8/chtypes.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/os/ports/RC/STM8/chtypes.h b/os/ports/RC/STM8/chtypes.h index cbe47e821..ffc972f14 100644 --- a/os/ports/RC/STM8/chtypes.h +++ b/os/ports/RC/STM8/chtypes.h @@ -29,14 +29,9 @@ #ifndef _CHTYPES_H_
#define _CHTYPES_H_
-#define __need_NULL
-#define __need_size_t
#include <stddef.h>
-//#if !defined(_STDINT_H) && !defined(__STDINT_H_)
-//#include <stdint.h>
-//#endif
-
+typedef unsigned char uint8t; /**< C99-style boolean. */
typedef unsigned char uint8_t; /**< C99-style 8 bits unsigned. */
typedef signed char int8_t; /**< C99-style 8 bits signed. */
typedef unsigned int uint16_t; /**< C99-style 16 bits unsigned. */
@@ -47,7 +42,15 @@ typedef uint8_t uint_fast8_t; /**< C99-style 8 bits unsigned. */ typedef uint16_t uint_fast16_t; /**< C99-style 16 bits unsigned. */
typedef uint32_t uint_fast32_t; /**< C99-style 32 bits unsigned. */
-typedef int8_t bool_t; /**< Fast boolean type. */
+#if !defined(false) || defined(__DOXYGEN__)
+#define false 0
+#endif
+
+#if !defined(true) || defined(__DOXYGEN__)
+#define true (!false)
+#endif
+
+typedef bool bool_t; /**< Fast boolean type. */
typedef uint8_t tmode_t; /**< Thread flags. */
typedef uint8_t tstate_t; /**< Thread state. */
typedef uint8_t trefs_t; /**< Thread references counter. */
|