00001 00009 /* 00010 * ============================================================================ 00011 * 00012 * Copyright (c) 2008-2012, Texas Instruments Incorporated 00013 * 00014 * Redistribution and use in source and binary forms, with or without 00015 * modification, are permitted provided that the following conditions 00016 * are met: 00017 * 00018 * * Redistributions of source code must retain the above copyright 00019 * notice, this list of conditions and the following disclaimer. 00020 * 00021 * * Redistributions in binary form must reproduce the above copyright 00022 * notice, this list of conditions and the following disclaimer in the 00023 * documentation and/or other materials provided with the distribution. 00024 * 00025 * * Neither the name of Texas Instruments Incorporated nor the names of 00026 * its contributors may be used to endorse or promote products derived 00027 * from this software without specific prior written permission. 00028 * 00029 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00030 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 00031 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00032 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 00033 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 00034 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 00035 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 00036 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 00037 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 00038 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 00039 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00040 * Contact information for paper mail: 00041 * Texas Instruments 00042 * Post Office Box 655303 00043 * Dallas, Texas 75265 00044 * Contact information: 00045 * http://www-k.ext.ti.com/sc/technical-support/product-information-centers.htm? 00046 * DCMP=TIHomeTracking&HQS=Other+OT+home_d_contact 00047 * ============================================================================ 00048 * 00049 */ 00050 00051 00052 #if !defined(STD_H) 00053 #define STD_H 00054 00055 #if defined(SYSLINK_BUILD_RTOS) 00056 #include <xdc/std.h> 00057 #else /* #if defined(SYSLINK_BUILD_RTOS) */ 00058 00059 #ifdef SYSLINK_BUILDOS_LINUX 00060 #include <std_linux.h> 00061 #elif defined(SYSLINK_BUILDOS_QNX) 00062 #include <std_qnx.h> 00063 #endif 00064 00065 #if defined (__cplusplus) 00066 extern "C" { 00067 #endif 00068 00069 typedef char Char; 00070 typedef unsigned char UChar; 00071 typedef short Short; 00072 typedef unsigned short UShort; 00073 typedef int Int; 00074 typedef unsigned int UInt; 00075 typedef long Long; 00076 typedef unsigned long ULong; 00077 typedef float Float; 00078 typedef double Double; 00079 typedef long double LDouble; 00080 typedef void Void; 00081 00082 00083 typedef unsigned short Bool; 00084 typedef void * Ptr; /* data pointer */ 00085 typedef char * String; /* null terminated string */ 00086 00087 00088 typedef int * IArg; 00089 typedef unsigned int * UArg; 00090 typedef char Int8; 00091 typedef short Int16; 00092 typedef int Int32; 00093 00094 typedef unsigned char UInt8; 00095 typedef unsigned short UInt16; 00096 typedef unsigned int UInt32; 00097 typedef unsigned int SizeT; 00098 typedef unsigned char Bits8; 00099 typedef unsigned short Bits16; 00100 typedef UInt32 Bits32; 00101 00102 #ifdef SYSLINK_BUILDOS_QNX 00103 typedef void * HANDLE; 00104 typedef unsigned int atomic_t; 00105 typedef unsigned long ULONG; 00106 typedef unsigned long DWORD; 00107 typedef unsigned int uint; 00108 typedef unsigned int UINT32; 00109 typedef unsigned short bool; 00110 #endif /* #ifdef SYSLINK_BUILDOS_QNX */ 00111 00112 #define TRUE 1 00113 #define FALSE 0 00114 00116 typedef UInt32 Error_Block; 00117 00119 #define Error_init(eb) *eb = 0 00120 00121 #endif /* #if defined(SYSLINK_BUILD_RTOS) */ 00122 00123 00124 #if defined (__cplusplus) 00125 } 00126 #endif 00127 00128 #endif 00129