From 3d5bdf9fba6442332030e68df2aa7880a894842d Mon Sep 17 00:00:00 2001 From: TC Wan Date: Wed, 1 Dec 2010 13:40:54 +0800 Subject: restructure repository --- Debugger/types.h | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Debugger/types.h (limited to 'Debugger/types.h') diff --git a/Debugger/types.h b/Debugger/types.h new file mode 100644 index 0000000..3a1d4cb --- /dev/null +++ b/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 -- cgit v1.2.3