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 ****************************************************************************/
28 // --- logic types ---
30 #define BOOL unsigned char
33 // --- alias types ---
40 #ifndef _TIME_OF_DAY_DEFINED_
42 unsigned long int m_dwMs;
43 unsigned short int m_wDays;
47 #define _TIME_OF_DAY_DEFINED_
51 //---------------------------------------------------------------------------
52 // Definition von TRACE
53 //---------------------------------------------------------------------------
58 #define TRACE0(p0) TRACE(p0)
62 #define TRACE1(p0, p1) TRACE(p0, p1)
66 #define TRACE2(p0, p1, p2) TRACE(p0, p1, p2)
70 #define TRACE3(p0, p1, p2, p3) TRACE(p0, p1, p2, p3)
74 #define TRACE4(p0, p1, p2, p3, p4) TRACE(p0, p1, p2, p3, p4)
78 #define TRACE5(p0, p1, p2, p3, p4, p5) TRACE(p0, p1, p2, p3, p4, p5)
82 #define TRACE6(p0, p1, p2, p3, p4, p5, p6) TRACE(p0, p1, p2, p3, p4, p5, p6)
92 #define TRACE1(p0, p1)
96 #define TRACE2(p0, p1, p2)
100 #define TRACE3(p0, p1, p2, p3)
104 #define TRACE4(p0, p1, p2, p3, p4)
108 #define TRACE5(p0, p1, p2, p3, p4, p5)
112 #define TRACE6(p0, p1, p2, p3, p4, p5, p6)
117 //---------------------------------------------------------------------------
118 // definition of ASSERT
119 //---------------------------------------------------------------------------
125 //---------------------------------------------------------------------------
126 // SYS TEC extensions
127 //---------------------------------------------------------------------------
129 // This macro doesn't print out C-file and line number of the failed assertion
130 // but a string, which exactly names the mistake.
133 #define ASSERTMSG(expr,string) if (!(expr)) {\
134 PRINTF0 ("Assertion failed: " string );\
137 #define ASSERTMSG(expr,string)
140 //---------------------------------------------------------------------------
142 #endif // #ifndef _GLOBAL_H_
144 // Please keep an empty line at the end of this file.