versadac  1
versadac - Scalable Recorder Firmware
mrp_datatypes.h
1 /***************************************************************************************
2  *********** Copyright 2005 Zurich University of Applied Sciences / InES **************
3  ***************************************************************************************
4  **
5  ** File : mrp_datatypes.h
6  **
7  ** Description : This file defines the MRP data types.
8  **
9  ***************************************************************************************
10  ** Department : Institute of Embedded Systems
11  ** Project : MRP
12  ** Modul : MRP Datatypes
13  ** Author : Christian Schaer
14  ** Contact : scc@zhwin.ch
15  ** Date : 10.04.2006
16  ****************************** Modifications ******************************************
17  **
18  ** Date : Who : Comment :
19  ** 10.05.06 scc initial release
20  **************************************************************************************/
21 /* $Workfile:: mrp_datatypes.h $*/
22 /* $Revision:: 3 $*/
23 /* $Date:: 16/12/10 14:44 $*/
24 
25 #ifndef MRP_DATATYPES_H
26 #define MRP_DATATYPES_H
27 
28 #include <stddef.h>
29 
30 #if !defined(HAVE_LONG_LONG)
31 #define HAVE_LONG_LONG 0
32 #endif
33 
34 #if !defined(SIZEOF_INT)
35 #define SIZEOF_INT 4
36 #endif
37 
38 #if !defined(SIZEOF_LONG)
39 #define SIZEOF_LONG 4
40 #endif
41 
42 /************************************************************************/
43 #if SIZEOF_INT == 4
44  typedef unsigned int Unsigned32;
45  typedef unsigned short Unsigned16;
46  typedef signed int Signed32;
47  typedef unsigned char UChar;
48  typedef unsigned char Unsigned8;
49 #else
50  #error No suitable types
51 #endif
52 
53 typedef unsigned char MRPBoolean;
54 
55 
56 #ifndef TRUE
57 #define TRUE 1
58 #endif
59 
60 #ifndef FALSE
61 #define FALSE 0
62 #endif
63 
64 
65 #endif