|
LMS 2012
|
Go to the documentation of this file.
23 #ifndef _TISTDTYPES_H_
24 #define _TISTDTYPES_H_
42 #define E_PASS (0x00000000u)
45 #define E_FAIL (0x00000001u)
48 #define E_TIMEOUT (0x00000002u)
57 typedef unsigned short Bool;
61 #define TRUE ((Bool) 1)
64 #define FALSE ((Bool) 0)
69 #define BUS_8BIT (0x01)
72 #define BUS_16BIT (0x02)
75 #define BUS_32BIT (0x04)
78 #define BUS_64BIT (0x08)
83 #define BIT0 (0x00000001)
84 #define BIT1 (0x00000002)
85 #define BIT2 (0x00000004)
86 #define BIT3 (0x00000008)
87 #define BIT4 (0x00000010)
88 #define BIT5 (0x00000020)
89 #define BIT6 (0x00000040)
90 #define BIT7 (0x00000080)
91 #define BIT8 (0x00000100)
92 #define BIT9 (0x00000200)
93 #define BIT10 (0x00000400)
94 #define BIT11 (0x00000800)
95 #define BIT12 (0x00001000)
96 #define BIT13 (0x00002000)
97 #define BIT14 (0x00004000)
98 #define BIT15 (0x00008000)
99 #define BIT16 (0x00010000)
100 #define BIT17 (0x00020000)
101 #define BIT18 (0x00040000)
102 #define BIT19 (0x00080000)
103 #define BIT20 (0x00100000)
104 #define BIT21 (0x00200000)
105 #define BIT22 (0x00400000)
106 #define BIT23 (0x00800000)
107 #define BIT24 (0x01000000)
108 #define BIT25 (0x02000000)
109 #define BIT26 (0x04000000)
110 #define BIT27 (0x08000000)
111 #define BIT28 (0x10000000)
112 #define BIT29 (0x20000000)
113 #define BIT30 (0x40000000)
114 #define BIT31 (0x80000000)
124 #if defined(_TMS320C6X)
126 typedef unsigned int Uint32;
127 typedef unsigned short Uint16;
128 typedef unsigned char Uint8;
136 typedef volatile unsigned int VUint32;
137 typedef volatile unsigned short VUint16;
138 typedef volatile unsigned char VUint8;
141 typedef volatile int VInt32;
142 typedef volatile short VInt16;
143 typedef volatile char VInt8;
146 #define __NEAR__ near
149 #elif defined(_TMS320C5XX) || defined(__TMS320C55X__)
151 typedef unsigned long Uint32;
152 typedef unsigned short Uint16;
153 typedef unsigned char Uint8;
160 #elif defined(_TMS320C28X)
162 typedef unsigned long Uint32;
163 typedef unsigned int Uint16;
164 typedef unsigned char Uint8;
171 #elif (defined(__TMS470__) || defined(__GNUC__))
173 typedef unsigned int Uint32;
174 typedef unsigned short Uint16;
175 typedef unsigned char Uint8;
183 typedef volatile unsigned int VUint32;
184 typedef volatile unsigned short VUint16;
185 typedef volatile unsigned char VUint8;
188 typedef volatile int VInt32;
189 typedef volatile short VInt16;
190 typedef volatile char VInt8;
197 #error <tistdtypes.h> is not supported for this target