aboutsummaryrefslogtreecommitdiffstats
path: root/os/ports/IAR/STM8
diff options
context:
space:
mode:
Diffstat (limited to 'os/ports/IAR/STM8')
-rw-r--r--os/ports/IAR/STM8/chtypes.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/os/ports/IAR/STM8/chtypes.h b/os/ports/IAR/STM8/chtypes.h
index a2ad1f4a1..f418256e1 100644
--- a/os/ports/IAR/STM8/chtypes.h
+++ b/os/ports/IAR/STM8/chtypes.h
@@ -29,15 +29,11 @@
#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
+#include <stdbool.h>
-typedef int8_t bool_t; /**< Fast boolean type. */
+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. */