SysLink API Reference
2.21.03.11
Main Page
Data Structures
Files
Related Pages
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
ti
syslink
Std.h
Go to the documentation of this file.
1
9
/*
10
* ============================================================================
11
*
12
* Copyright (c) 2008-2013, 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
*/
50
51
52
#if !defined(STD_H)
53
#define STD_H
54
55
#if defined(SYSLINK_BUILD_RTOS)
56
#include <xdc/std.h>
57
#else
/* #if defined(SYSLINK_BUILD_RTOS) */
58
59
#ifdef SYSLINK_BUILDOS_LINUX
60
#if defined (__KERNEL__)
61
#include <ti/syslink/inc/knl/Linux/std_linux.h>
62
#else
63
#include <ti/syslink/inc/usr/Linux/std_linux.h>
64
#endif
65
#elif defined(SYSLINK_BUILDOS_QNX)
66
#include <ti/syslink/inc/knl/Qnx/std_qnx.h>
67
#endif
68
69
#if defined (__cplusplus)
70
extern
"C"
{
71
#endif
72
73
#define Void void
74
75
typedef
char
Char
;
76
typedef
unsigned
char
UChar
;
77
typedef
short
Short
;
78
typedef
unsigned
short
UShort
;
79
typedef
int
Int
;
80
typedef
unsigned
int
UInt
;
81
typedef
long
Long
;
82
typedef
unsigned
long
ULong
;
83
typedef
float
Float
;
84
typedef
double
Double
;
85
typedef
long
double
LDouble
;
86
87
88
typedef
unsigned
short
Bool
;
89
typedef
void
*
Ptr
;
/* data pointer */
90
typedef
char
*
String
;
/* null terminated string */
91
typedef
const
char
*
CString
;
/* null terminated constant string */
92
93
94
typedef
int
*
IArg
;
95
typedef
unsigned
int
*
UArg
;
96
typedef
char
Int8
;
97
typedef
short
Int16
;
98
typedef
int
Int32
;
99
100
typedef
unsigned
char
UInt8
;
101
typedef
unsigned
short
UInt16
;
102
typedef
unsigned
int
UInt32
;
103
typedef
unsigned
int
SizeT
;
104
typedef
unsigned
char
Bits8
;
105
typedef
unsigned
short
Bits16
;
106
typedef
UInt32
Bits32
;
107
108
#ifdef SYSLINK_BUILDOS_QNX
109
typedef
void
* HANDLE;
110
typedef
unsigned
int
atomic_t;
111
typedef
unsigned
long
ULONG;
112
typedef
unsigned
long
DWORD;
113
typedef
unsigned
int
uint;
114
typedef
unsigned
int
UINT32;
115
typedef
unsigned
short
bool;
116
#endif
/* #ifdef SYSLINK_BUILDOS_QNX */
117
118
#define TRUE 1
119
#define FALSE 0
120
122
typedef
UInt32
Error_Block
;
123
125
#define Error_init(eb) *eb = 0
126
127
#if defined (__cplusplus)
128
}
129
#endif
130
131
#endif
/* #if defined(SYSLINK_BUILD_RTOS) */
132
133
#endif
Copyright 2014, Texas Instruments Incorporated