OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [devs/] [eth/] [arm/] [ks32c5000/] [v2_0/] [src/] [std.h] - Blame information for rev 174

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
#ifndef _STD_H_
2
#define _STD_H_
3
 
4
#ifndef BYTE 
5
#define BYTE unsigned char
6
#endif
7
 
8
#ifndef WORD
9
#define WORD unsigned short
10
#endif
11
 
12
#ifndef LWORD
13
#define LWORD unsigned long
14
#endif
15
 
16
#ifndef DWORD
17
#define DWORD unsigned long
18
#endif
19
 
20
#ifndef VLWORD
21
#define VLWORD volatile unsigned long
22
#endif
23
 
24
#ifndef BOOLEAN
25
#define BOOLEAN BYTE
26
#endif
27
 
28
#ifndef BOOL
29
#define BOOL BYTE
30
#endif
31
 
32
#ifndef TRUE
33
#define TRUE 1
34
#endif
35
 
36
#ifndef FALSE
37
#define FALSE 0
38
#endif
39
 
40
#ifndef NULL
41
#define NULL    ((void *)0)
42
#endif
43
 
44
#define S8            signed char
45
#define S08            signed char
46
#define S16           signed short
47
#define S32           signed long
48
#define U8            unsigned char
49
#define U08            unsigned char
50
#define U16           unsigned short
51
#define U32           unsigned long
52
#define REG8          volatile unsigned char
53
#define REG16         volatile unsigned short
54
#define REG32         volatile unsigned long
55
 
56
#define UINT          unsigned int
57
 
58
#define std_Local       static
59
#define std_Void        void
60
 
61
#define STD_YES          1
62
#define STD_NO           0
63
 
64
#define STD_TRUE        STD_YES
65
#define STD_FALSE       STD_NO
66
 
67
#define STD_OK          STD_YES
68
#define STD_ERROR       STD_NO
69
 
70
#define STD_ON          STD_YES
71
#define STD_OFF         STD_NO
72
 
73
#define  BIT0        0x00000001
74
#define  BIT1        0x00000002
75
#define  BIT2        0x00000004
76
#define  BIT3        0x00000008
77
#define  BIT4        0x00000010
78
#define  BIT5        0x00000020
79
#define  BIT6        0x00000040
80
#define  BIT7        0x00000080
81
#define  BIT8        0x00000100
82
#define  BIT9        0x00000200
83
#define  BIT10       0x00000400
84
#define  BIT11       0x00000800
85
#define  BIT12       0x00001000
86
#define  BIT13       0x00002000
87
#define  BIT14       0x00004000
88
#define  BIT15       0x00008000
89
#define  BIT16       0x00010000
90
#define  BIT17       0x00020000
91
#define  BIT18       0x00040000
92
#define  BIT19       0x00080000
93
#define  BIT20       0x00100000
94
#define  BIT21       0x00200000
95
#define  BIT22       0x00400000
96
#define  BIT23       0x00800000
97
#define  BIT24       0x01000000
98
#define  BIT25       0x02000000
99
#define  BIT26       0x04000000
100
#define  BIT27       0x08000000
101
#define  BIT28       0x10000000
102
#define  BIT29       0x20000000
103
#define  BIT30       0x40000000
104
#define  BIT31       0x80000000
105
 
106
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.