]> rtime.felk.cvut.cz Git - arc.git/blob - arch/ppc/mpc55xx/drivers/typedefs.h
Initial commit.
[arc.git] / arch / ppc / mpc55xx / drivers / typedefs.h
1 /* -------------------------------- Arctic Core ------------------------------
2  * Arctic Core - the open source AUTOSAR platform http://arccore.com
3  *
4  * Copyright (C) 2009  ArcCore AB <contact@arccore.com>
5  *
6  * This source code is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 as published by the
8  * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.
9  *
10  * This program is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13  * for more details.
14  * -------------------------------- Arctic Core ------------------------------*/
15
16
17
18
19
20
21
22
23 /**************************************************************************\r
24  * FILE NAME: $RCSfile: typedefs.h,v $       COPYRIGHT (c) Freescale 2005 *\r
25  * DESCRIPTION:                                     All Rights Reserved   *\r
26  * This file defines all of the data types for the Motorola header file.  *\r
27  *========================================================================*\r
28  * ORIGINAL AUTHOR: Jeff Loeliger (r12110)                                *\r
29  * $Log: typedefs.h,v $\r
30  * Revision 1.0  2007-06-14 15:54:36+02  b08931\r
31  * Initial revision\r
32  *\r
33  * Revision 1.0  2007-06-14 11:33:56+02  b08931\r
34  * Initial revision\r
35  *\r
36  * Revision 1.0  2007-06-13 15:12:03+02  b08931\r
37  * Initial revision\r
38  *\r
39  * Revision 1.0  2007-06-13 12:55:08+02  b08931\r
40  * Initial revision\r
41  *\r
42  * Revision 1.0  2007-06-13 10:08:35+02  b08931\r
43  * Initial revision\r
44  *\r
45  * Revision 1.0  2007-06-13 09:37:55+02  b08931\r
46  * Initial revision\r
47  *\r
48  * Revision 1.0  2007-06-12 14:50:33+02  b08931\r
49  * Initial revision\r
50  *\r
51  * Revision 1.0  2007-06-06 13:16:20+02  b08931\r
52  * Initial revision\r
53  *\r
54  * Revision 1.0  2007-04-19 13:13:10+02  b08931\r
55  * Initial revision\r
56  *\r
57  * Revision 1.4  2006/03/27 09:59:34  r47354\r
58  * change __GHS__ to __ghs__. As per bug 13213\r
59  *\r
60  * Revision 1.3  2005/02/22 13:09:38  r47354\r
61  * Fix copyright date.\r
62  *\r
63  * Revision 1.2  2004/11/17 12:43:12  r12110\r
64  * -Removed #ifdef DEBUG from around initial comment block.\r
65  *\r
66  * Revision 1.1  2004/11/17 12:38:48  r12110\r
67  * -Initial version checked into CVS.\r
68  * -Updated copyright from Motorola to Freescale.\r
69  *\r
70  *........................................................................*\r
71  * 0.1   J. Loeliger  17/Feb/03    Initial version of file.               *\r
72  * 0.2   J. Loeliger  06/Mar/03    Added DCC support.                     *\r
73  * 0.3   J. Loeliger  07/May/03    Change to fully use ISO data types.    *\r
74  * 0.4   J. Loeliger  17/Jun/03    Change name to motint.h and merge      *\r
75  *                                  MPC5500 and MAC7100 files.            *\r
76  * 0.5   J. Loeliger  04/Nov/03    Changed name to typedefs.h.            *\r
77  * 0.6   J. Loeliger  09/May/04    Changed to support GHS and GCC.        *\r
78  **************************************************************************/\r
79 \r
80 #ifndef _TYPEDEFS_H_\r
81 #define _TYPEDEFS_H_\r
82 \r
83 #if defined(__MWERKS__)     //Metrowerk CodeWarrior\r
84     #include <stdint.h>\r
85 \r
86     // Standard typedefs used by header files, based on ISO C standard\r
87     typedef volatile int8_t vint8_t;\r
88     typedef volatile uint8_t vuint8_t;\r
89 \r
90     typedef volatile int16_t vint16_t;\r
91     typedef volatile uint16_t vuint16_t;\r
92 \r
93     typedef volatile int32_t vint32_t;\r
94     typedef volatile uint32_t vuint32_t;\r
95 \r
96 #else\r
97 #ifdef __ghs__    //GreenHills\r
98     #include <stdint.h>\r
99 \r
100     // Standard typedefs used by header files, based on ISO C standard\r
101     typedef volatile int8_t vint8_t;\r
102     typedef volatile uint8_t vuint8_t;\r
103 \r
104     typedef volatile int16_t vint16_t;\r
105     typedef volatile uint16_t vuint16_t;\r
106 \r
107     typedef volatile int32_t vint32_t;\r
108     typedef volatile uint32_t vuint32_t;\r
109 \r
110 #else\r
111 \r
112     // This is needed for compilers that don't have a stdint.h file\r
113 #if 1\r
114     #include <stdint.h> \r
115 #else\r
116     typedef signed char int8_t;\r
117     typedef unsigned char uint8_t;\r
118     typedef signed short int16_t;\r
119     typedef unsigned short uint16_t;\r
120     typedef signed int int32_t;\r
121     typedef unsigned int uint32_t;\r
122 \r
123 #endif\r
124     typedef volatile signed char vint8_t;\r
125     typedef volatile unsigned char vuint8_t;\r
126 \r
127     typedef volatile signed short vint16_t;\r
128     typedef volatile unsigned short vuint16_t;\r
129 \r
130     typedef volatile signed int vint32_t;\r
131     typedef volatile unsigned int vuint32_t;    \r
132 #endif\r
133 #endif\r
134 #endif\r
135 \r
136 /*********************************************************************\r
137  *\r
138  * Copyright:\r
139  *      Freescale Semiconductor, INC. All Rights Reserved.\r
140  *  You are hereby granted a copyright license to use, modify, and\r
141  *  distribute the SOFTWARE so long as this entire notice is\r
142  *  retained without alteration in any modified and/or redistributed\r
143  *  versions, and that such modified versions are clearly identified\r
144  *  as such. No licenses are granted by implication, estoppel or\r
145  *  otherwise under any patents or trademarks of Freescale\r
146  *  Semiconductor, Inc. This software is provided on an "AS IS"\r
147  *  basis and without warranty.\r
148  *\r
149  *  To the maximum extent permitted by applicable law, Freescale\r
150  *  Semiconductor DISCLAIMS ALL WARRANTIES WHETHER EXPRESS OR IMPLIED,\r
151  *  INCLUDING IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A\r
152  *  PARTICULAR PURPOSE AND ANY WARRANTY AGAINST INFRINGEMENT WITH\r
153  *  REGARD TO THE SOFTWARE (INCLUDING ANY MODIFIED VERSIONS THEREOF)\r
154  *  AND ANY ACCOMPANYING WRITTEN MATERIALS.\r
155  *\r
156  *  To the maximum extent permitted by applicable law, IN NO EVENT\r
157  *  SHALL Freescale Semiconductor BE LIABLE FOR ANY DAMAGES WHATSOEVER\r
158  *  (INCLUDING WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS,\r
159  *  BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR OTHER\r
160  *  PECUNIARY LOSS) ARISING OF THE USE OR INABILITY TO USE THE SOFTWARE.\r
161  *\r
162  *  Freescale Semiconductor assumes no responsibility for the\r
163  *  maintenance and support of this software\r
164  *\r
165  ********************************************************************/\r
166 \r
167 \r