1 /**
2 * @file Std.h
3 *
4 * @brief This will have definitions of standard data types for
5 * platform abstraction.
6 *
7 *
8 * @ver 02.00.00.46_alpha1
9 *
10 * ============================================================================
11 *
12 * Copyright (c) 2008-2009, Texas Instruments Incorporated
13 *
14 * Redistribution and use in source and binary forms, with or without
15 * modification, are permitted provided that the following conditions
16 * are met:
17 *
18 * * Redistributions of source code must retain the above copyright
19 * notice, this list of conditions and the following disclaimer.
20 *
21 * * Redistributions in binary form must reproduce the above copyright
22 * notice, this list of conditions and the following disclaimer in the
23 * documentation and/or other materials provided with the distribution.
24 *
25 * * Neither the name of Texas Instruments Incorporated nor the names of
26 * its contributors may be used to endorse or promote products derived
27 * from this software without specific prior written permission.
28 *
29 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
30 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
31 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
32 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
33 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
34 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
35 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
36 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
37 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
38 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
39 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40 * Contact information for paper mail:
41 * Texas Instruments
42 * Post Office Box 655303
43 * Dallas, Texas 75265
44 * Contact information:
45 * http://www-k.ext.ti.com/sc/technical-support/product-information-centers.htm?
46 * DCMP=TIHomeTracking&HQS=Other+OT+home_d_contact
47 * ============================================================================
48 *
49 */
51 #if !defined(STD_H)
52 #define STD_H
54 #ifdef SYSLINK_BUILDOS_LINUX
55 #include <std_linux.h>
56 #elif SYSLINK_BUILDOS_QNX
57 #include <std_qnx.h>
58 #endif
60 #if defined (__cplusplus)
61 extern "C" {
62 #endif
64 typedef char Char;
65 typedef unsigned char UChar;
66 typedef short Short;
67 typedef unsigned short UShort;
68 typedef int Int;
69 typedef unsigned int UInt;
70 #ifndef _UINT_DEFINED
71 #define _UINT_DEFINED
72 typedef unsigned int uint;
73 #endif
74 typedef unsigned int UINT32;
75 typedef long Long;
76 typedef unsigned long ULong;
77 typedef unsigned long ULONG;
78 typedef unsigned long DWORD;
79 typedef float Float;
80 typedef double Double;
81 typedef long double LDouble;
82 typedef void Void;
83 typedef void * HANDLE;
84 typedef unsigned int atomic_t;
86 typedef unsigned short Bool;
87 typedef unsigned short BOOL;
88 typedef void * Ptr; /* data pointer */
89 typedef char * String; /* null terminated string */
92 typedef int * IArg;
93 typedef unsigned int * UArg;
94 typedef char Int8;
95 typedef short Int16;
96 typedef int Int32;
98 typedef unsigned char UInt8;
99 typedef unsigned short UInt16;
100 typedef unsigned int UInt32;
101 typedef unsigned int SizeT;
102 typedef unsigned char Bits8;
103 typedef unsigned short Bits16;
104 typedef UInt32 Bits32;
106 #define TRUE 1
107 #define FALSE 0
109 /*! Data type for errors */
110 typedef UInt32 Error_Block;
112 /*! Initialize error block */
113 #define Error_init(eb) *eb = 0
115 #if defined (__cplusplus)
116 }
117 #endif
119 #endif