1 /****************************************************************************
3 global project definition file
6 11.02.2002 r.d. Erweiterungen, Ergaenzungen
7 20.08.2002 SYS TEC electronic -as
8 Definition Schluesselwort 'GENERIC'
9 fuer das Erzeugen von Generic Pointer
10 28.08.2002 r.d. erweiterter SYS TEC Debug Code
11 16.09.2002 r.d. komplette Uebersetzung in Englisch
12 11.04.2003 f.j. Ergaenzung fuer Mitsubishi NC30 Compiler
13 17.06.2003 -rs Definition von Basistypen in <#ifndef _WINDEF_> gesetzt
14 16.04.2004 r.d. Ergaenzung fuer Borland C++ Builder
15 30.08.2004 -rs TRACE5 eingefügt
16 23.12.2005 d.k. Definitions for IAR compiler
18 $Id: global.h,v 1.6 2008/11/07 13:55:56 D.Krueger Exp $
20 ****************************************************************************/
27 #define QWORD long long int
30 // ------------------ GNUC for I386 ---------------------------------------------
32 #define ROM // code or variables mapped to ROM (i.e. flash)
33 // usage: CONST BYTE ROM foo = 0x00;
34 #define HWACC // hardware access through external memory (i.e. CAN)
36 #define MEM // Memory attribute to optimize speed and code of pointer access.
39 #define FAR // variables mapped to external data storage location
43 #define CONST const // variables mapped to ROM (i.e. flash)
51 #define SHORT short int
54 #define USHORT unsigned short int
60 #define UINT unsigned int
66 #define ULONG unsigned long int
68 // --- logic types ---
70 #define BYTE unsigned char
73 #define WORD unsigned short int
76 #define DWORD unsigned long int
79 #define BOOL unsigned char
81 // --- alias types ---
88 #ifndef _TIME_OF_DAY_DEFINED_
90 unsigned long int m_dwMs
;
91 unsigned short int m_wDays
;
95 #define _TIME_OF_DAY_DEFINED_
99 //---------------------------------------------------------------------------
100 // Definition von TRACE
101 //---------------------------------------------------------------------------
106 #define TRACE0(p0) TRACE(p0)
110 #define TRACE1(p0, p1) TRACE(p0, p1)
114 #define TRACE2(p0, p1, p2) TRACE(p0, p1, p2)
118 #define TRACE3(p0, p1, p2, p3) TRACE(p0, p1, p2, p3)
122 #define TRACE4(p0, p1, p2, p3, p4) TRACE(p0, p1, p2, p3, p4)
126 #define TRACE5(p0, p1, p2, p3, p4, p5) TRACE(p0, p1, p2, p3, p4, p5)
130 #define TRACE6(p0, p1, p2, p3, p4, p5, p6) TRACE(p0, p1, p2, p3, p4, p5, p6)
140 #define TRACE1(p0, p1)
144 #define TRACE2(p0, p1, p2)
148 #define TRACE3(p0, p1, p2, p3)
152 #define TRACE4(p0, p1, p2, p3, p4)
156 #define TRACE5(p0, p1, p2, p3, p4, p5)
160 #define TRACE6(p0, p1, p2, p3, p4, p5, p6)
165 //---------------------------------------------------------------------------
166 // definition of ASSERT
167 //---------------------------------------------------------------------------
173 //---------------------------------------------------------------------------
174 // SYS TEC extensions
175 //---------------------------------------------------------------------------
177 // This macro doesn't print out C-file and line number of the failed assertion
178 // but a string, which exactly names the mistake.
181 #define ASSERTMSG(expr,string) if (!(expr)) {\
182 PRINTF0 ("Assertion failed: " string );\
185 #define ASSERTMSG(expr,string)
188 //---------------------------------------------------------------------------
190 #endif // #ifndef _GLOBAL_H_
192 // Please keep an empty line at the end of this file.