summaryrefslogtreecommitdiff
path: root/AT91SAM7S256/Debugger/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'AT91SAM7S256/Debugger/types.h')
-rw-r--r--AT91SAM7S256/Debugger/types.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/AT91SAM7S256/Debugger/types.h b/AT91SAM7S256/Debugger/types.h
new file mode 100644
index 0000000..3a1d4cb
--- /dev/null
+++ b/AT91SAM7S256/Debugger/types.h
@@ -0,0 +1,46 @@
+/** @file types.h
+ * @brief Basic type definitions for the Arm7 platform.
+ */
+
+/* Copyright (c) 2007,2008 the NxOS developers
+ *
+ * See AUTHORS for a full list of the developers.
+ *
+ * Redistribution of this file is permitted under
+ * the terms of the GNU Public License (GPL) version 2.
+ */
+
+#ifndef __NXOS_BASE_TYPES_H__
+#define __NXOS_BASE_TYPES_H__
+
+/** @addtogroup typesAndUtils */
+/*@{*/
+
+typedef unsigned char U8; /**< Unsigned 8-bit integer. */
+typedef signed char S8; /**< Signed 8-bit integer. */
+typedef unsigned short U16; /**< Unsigned 16-bit integer. */
+typedef signed short S16; /**< Signed 16-bit integer. */
+typedef unsigned long U32; /**< Unsigned 32-bit integer. */
+typedef signed long S32; /**< Signed 32-bit integer. */
+
+#ifndef __SIZE_TYPE__
+#define __SIZE_TYPE__ U32 /**< Used to go conform with gcc, otherwise we are
+ risking an error because of conflicting types for size_t */
+#endif
+typedef __SIZE_TYPE__ size_t; /**< Abstract size type, needed by the memory allocator. */
+
+typedef U8 bool; /**< Boolean data type. */
+#define FALSE (0) /**< False boolean value. */
+#define TRUE (!FALSE) /**< True boolean value. */
+
+#ifndef NULL
+/** Definition of the NULL pointer. */
+#define NULL ((void*)0)
+#endif
+
+/** A function that takes no arguments and returns nothing. */
+typedef void (*nx_closure_t)(void);
+
+/*@}*/
+
+#endif