Go to the documentation of this file.00001
00043 #if !defined (GPPTYPES_H)
00044 #define GPPTYPES_H
00045
00046
00047 #if defined (__cplusplus)
00048 extern "C" {
00049 #endif
00050
00051 #if defined xdc_target__
00052 #include <xdc/std.h>
00053 #endif
00054
00061 #define IN
00062 #define OUT
00063 #define CONST const
00064
00071 #define USES(filename)
00072
00073
00080 #if defined xdc_target__
00081 #else
00082 typedef signed char Int8 ;
00083 #endif
00084
00085
00086 #if defined xdc_target__
00087 #else
00088 typedef signed short int Int16 ;
00089 #endif
00090 #if defined xdc_target__
00091 #else
00092 typedef signed long int Int32 ;
00093 #endif
00094
00095 #if defined xdc_target__
00096 #else
00097 typedef unsigned char Uint8 ;
00098 #endif
00099 #if defined xdc_target__
00100 #else
00101 typedef unsigned short int Uint16 ;
00102 #endif
00103 #if defined xdc_target__
00104 #else
00105 typedef unsigned long int Uint32 ;
00106 #endif
00107
00108 typedef float Real32 ;
00109 typedef double Real64 ;
00110
00111 #if defined xdc_target__
00112 #else
00113 typedef short int Bool ;
00114 #endif
00115
00116 typedef char Char8 ;
00117 typedef short Char16 ;
00118
00119 typedef unsigned char Uchar8 ;
00120 typedef unsigned short Uchar16 ;
00121
00122
00123 #if defined xdc_target__
00124 #else
00125 typedef int Int ;
00126 #endif
00127
00128 #if defined xdc_target__
00129 #else
00130 #define Void void
00131 #endif
00132 typedef void * Pvoid ;
00133
00134 typedef Char8 * Pstr ;
00135 typedef Uchar8 * Pustr ;
00136
00137
00144 #if !defined (FALSE)
00145 #define FALSE 0u
00146 #endif
00147
00148 #if !defined (TRUE)
00149 #define TRUE 1u
00150 #endif
00151
00152
00159 #if !defined (NULL)
00160
00161 #if defined (__cplusplus)
00162 #define NULL 0u
00163 #else
00164 #define NULL ((void *)0)
00165 #endif
00166
00167 #endif
00168
00169
00176 #define NULL_CHAR '\0'
00177
00178
00185 #define REG8(A) (*(volatile Char8 *) (A))
00186 #define REG16(A) (*(volatile Uint16 *) (A))
00187 #define REG32(A) (*(volatile Uint32 *) (A))
00188
00189
00196 typedef Uint32 ProcessorId ;
00197 typedef Uint32 ChannelId ;
00198
00199
00207 typedef Uint16 PoolId ;
00208
00209
00216 #if defined (OS_WINCE)
00217
00218 #endif
00219
00220
00221 #if defined (OS_NUCLEUS)
00222
00223 #endif
00224
00225
00226 #if defined (OS_LINUX)
00227
00228 #endif
00229
00230
00238 #define STATIC static
00239 #define EXTERN extern
00240
00241
00242 #if defined (OS_WINCE)
00243
00244 #define CDECL
00245 #define DLLIMPORT __declspec (dllimport)
00246 #define DLLEXPORT __declspec (dllexport)
00247
00248 #endif
00249
00250
00251 #if defined (OS_NUCLEUS)
00252
00253 #define CDECL
00254 #define DLLIMPORT
00255 #define DLLEXPORT
00256
00257 #endif
00258
00259 #if defined (OS_LINUX)
00260
00261 #define CDECL
00262 #define DLLIMPORT
00263 #define DLLEXPORT
00264
00265 #endif
00266
00267
00268 #if defined (OS_PROS)
00269
00270 #define CDECL
00271 #define DLLIMPORT
00272 #define DLLEXPORT
00273
00274 #endif
00275
00276
00277 #define NORMAL_API CDECL
00278 #define IMPORT_API DLLIMPORT
00279 #define EXPORT_API DLLEXPORT
00280
00281
00282 #if defined (__cplusplus)
00283 }
00284 #endif
00285
00286 #endif