see: http://mbed.org/users/okini3939/notebook/low-power-lpc81x/
type.h@1:f336c9774f7a, 2013-06-07 (annotated)
- Committer:
- okini3939
- Date:
- Fri Jun 07 22:47:35 2013 +0000
- Revision:
- 1:f336c9774f7a
fix
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
okini3939 | 1:f336c9774f7a | 1 | /* |
okini3939 | 1:f336c9774f7a | 2 | * @brief |
okini3939 | 1:f336c9774f7a | 3 | * This file contains different type definition. |
okini3939 | 1:f336c9774f7a | 4 | * |
okini3939 | 1:f336c9774f7a | 5 | * @note |
okini3939 | 1:f336c9774f7a | 6 | * Copyright(C) NXP Semiconductors, 2012 |
okini3939 | 1:f336c9774f7a | 7 | * All rights reserved. |
okini3939 | 1:f336c9774f7a | 8 | * |
okini3939 | 1:f336c9774f7a | 9 | * @par |
okini3939 | 1:f336c9774f7a | 10 | * Software that is described herein is for illustrative purposes only |
okini3939 | 1:f336c9774f7a | 11 | * which provides customers with programming information regarding the |
okini3939 | 1:f336c9774f7a | 12 | * LPC products. This software is supplied "AS IS" without any warranties of |
okini3939 | 1:f336c9774f7a | 13 | * any kind, and NXP Semiconductors and its licensor disclaim any and |
okini3939 | 1:f336c9774f7a | 14 | * all warranties, express or implied, including all implied warranties of |
okini3939 | 1:f336c9774f7a | 15 | * merchantability, fitness for a particular purpose and non-infringement of |
okini3939 | 1:f336c9774f7a | 16 | * intellectual property rights. NXP Semiconductors assumes no responsibility |
okini3939 | 1:f336c9774f7a | 17 | * or liability for the use of the software, conveys no license or rights under any |
okini3939 | 1:f336c9774f7a | 18 | * patent, copyright, mask work right, or any other intellectual property rights in |
okini3939 | 1:f336c9774f7a | 19 | * or to any products. NXP Semiconductors reserves the right to make changes |
okini3939 | 1:f336c9774f7a | 20 | * in the software without notification. NXP Semiconductors also makes no |
okini3939 | 1:f336c9774f7a | 21 | * representation or warranty that such application will be suitable for the |
okini3939 | 1:f336c9774f7a | 22 | * specified use without further testing or modification. |
okini3939 | 1:f336c9774f7a | 23 | * |
okini3939 | 1:f336c9774f7a | 24 | * @par |
okini3939 | 1:f336c9774f7a | 25 | * Permission to use, copy, modify, and distribute this software and its |
okini3939 | 1:f336c9774f7a | 26 | * documentation is hereby granted, under NXP Semiconductors' and its |
okini3939 | 1:f336c9774f7a | 27 | * licensor's relevant copyrights in the software, without fee, provided that it |
okini3939 | 1:f336c9774f7a | 28 | * is used in conjunction with NXP Semiconductors microcontrollers. This |
okini3939 | 1:f336c9774f7a | 29 | * copyright, permission, and disclaimer notice must appear in all copies of |
okini3939 | 1:f336c9774f7a | 30 | * this code. |
okini3939 | 1:f336c9774f7a | 31 | */ |
okini3939 | 1:f336c9774f7a | 32 | |
okini3939 | 1:f336c9774f7a | 33 | #ifndef __TYPE_H__ |
okini3939 | 1:f336c9774f7a | 34 | #define __TYPE_H__ |
okini3939 | 1:f336c9774f7a | 35 | |
okini3939 | 1:f336c9774f7a | 36 | /* exact-width signed integer types */ |
okini3939 | 1:f336c9774f7a | 37 | typedef signed char int8_t; |
okini3939 | 1:f336c9774f7a | 38 | typedef signed short int int16_t; |
okini3939 | 1:f336c9774f7a | 39 | typedef signed int int32_t; |
okini3939 | 1:f336c9774f7a | 40 | typedef signed __int64 int64_t; |
okini3939 | 1:f336c9774f7a | 41 | |
okini3939 | 1:f336c9774f7a | 42 | /* exact-width unsigned integer types */ |
okini3939 | 1:f336c9774f7a | 43 | typedef unsigned char uint8_t; |
okini3939 | 1:f336c9774f7a | 44 | typedef unsigned short int uint16_t; |
okini3939 | 1:f336c9774f7a | 45 | typedef unsigned int uint32_t; |
okini3939 | 1:f336c9774f7a | 46 | typedef unsigned __int64 uint64_t; |
okini3939 | 1:f336c9774f7a | 47 | |
okini3939 | 1:f336c9774f7a | 48 | #ifndef NULL |
okini3939 | 1:f336c9774f7a | 49 | #define NULL ((void *)0) |
okini3939 | 1:f336c9774f7a | 50 | #endif |
okini3939 | 1:f336c9774f7a | 51 | |
okini3939 | 1:f336c9774f7a | 52 | #ifndef FALSE |
okini3939 | 1:f336c9774f7a | 53 | #define FALSE (0) |
okini3939 | 1:f336c9774f7a | 54 | #endif |
okini3939 | 1:f336c9774f7a | 55 | |
okini3939 | 1:f336c9774f7a | 56 | #ifndef TRUE |
okini3939 | 1:f336c9774f7a | 57 | #define TRUE (1) |
okini3939 | 1:f336c9774f7a | 58 | #endif |
okini3939 | 1:f336c9774f7a | 59 | |
okini3939 | 1:f336c9774f7a | 60 | #endif /* __TYPE_H__ */ |