Commit | Line | Data |
---|---|---|
dd3b648e RP |
1 | /* vxTypes.h - VxWorks type definition header */ |
2 | ||
3 | /* Copyright 1984-1990 Wind River Systems, Inc. */ | |
4 | ||
5 | /* | |
6 | modification history | |
7 | -------------------- | |
8 | 01c,05oct90,shl added copyright notice. | |
9 | made #endif ANSI style. | |
10 | 01b,10aug90,dnw added VOIDFUNCPTR | |
11 | 01a,29may90,del written. | |
12 | */ | |
13 | ||
14 | #ifndef INCvxTypesh | |
15 | #define INCvxTypesh | |
16 | ||
17 | /* The following stuff must NOT be included if this include file is used | |
18 | * from assembly language. Just #define ASMLANGUAGE before the include, | |
19 | * to get rid of it. | |
20 | */ | |
21 | ||
22 | #ifndef ASMLANGUAGE | |
23 | ||
24 | /* vxWorks types */ | |
25 | ||
26 | typedef char INT8; | |
27 | typedef short INT16; | |
28 | typedef int INT32; | |
29 | ||
30 | typedef unsigned char UINT8; | |
31 | typedef unsigned short UINT16; | |
32 | typedef unsigned int UINT32; | |
33 | ||
34 | typedef unsigned char UCHAR; | |
35 | typedef unsigned short USHORT; | |
36 | typedef unsigned int UINT; | |
37 | typedef unsigned long ULONG; | |
38 | ||
39 | typedef int BOOL; | |
40 | typedef int VOID; | |
41 | typedef int STATUS; | |
42 | typedef int ARGINT; | |
43 | ||
44 | typedef int (*FUNCPTR) (); /* ptr to function returning int */ | |
45 | typedef VOID (*VOIDFUNCPTR) (); /* ptr to function returning VOID */ | |
46 | ||
47 | ||
48 | /* historical definitions - now obsolete */ | |
49 | ||
50 | typedef char TINY; /* obsolete */ | |
51 | typedef char TBOOL; /* obsolete */ | |
52 | typedef unsigned char UTINY; /* obsolete */ | |
53 | ||
54 | ||
55 | /* architecture dependent typedefs */ | |
56 | ||
57 | #ifdef CPU_FAMILY | |
58 | ||
59 | #if CPU_FAMILY==MC680X0 | |
60 | typedef unsigned short INSTR; /* word-aligned instructions */ | |
61 | #endif /* CPU_FAMILY==MC680X0 */ | |
62 | ||
63 | #if CPU_FAMILY==SPARC | |
64 | typedef unsigned long INSTR; /* 32 bit word-aligned instructions */ | |
65 | #endif /* CPU_FAMILY==SPARC */ | |
66 | ||
67 | #endif | |
68 | ||
69 | #endif /* ASMLANGUAGE */ | |
70 | #endif /* INCvxTypesh */ |