summaryrefslogtreecommitdiffstats
blob: 4301831e52f022b2e7605dd31f665fd1de435123 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*
 *  Copyright (c) 2008 Texas Instruments and others.
 *  All rights reserved. This program and the accompanying materials
 *  are made available under the terms of the Eclipse Public License v1.0
 *  which accompanies this distribution, and is available at
 *  http://www.eclipse.org/legal/epl-v10.html
 *
 *  Contributors:
 *      Texas Instruments - initial implementation
 *
 * */
/*
 *  ======== gnu/targets/std.h ========
 *
 */

#ifndef gnu_targets_STD_
#define gnu_targets_STD_

/* allow _TI_STD_TYPES like 'Uns' and 'Uint8' */
#ifndef xdc__deprecated_types
#define xdc__deprecated_types
#endif

/* include target-specific "portable" macros */
#if defined(xdc_target_name__) & !defined(xdc_target_macros_include__)
#include xdc__local_include(xdc_target_name__)
#endif

/*
 * xdc__LONGLONG__ indicates if compiler supports 'long long' type
 * xdc__BITS<n> __ indicates if compiler supports 'uint<n>_t' type
 */
#define xdc__LONGLONG__
#define xdc__BITS8__
#define xdc__BITS16__
#define xdc__BITS32__
#define xdc__BITS64__
#define xdc__INT64__

/*
 *  ======== [U]Int<n> ========
 */
typedef signed char         xdc_Int8;
typedef unsigned char       xdc_UInt8;
typedef short               xdc_Int16;
typedef unsigned short      xdc_UInt16;
typedef int                xdc_Int32;

#if defined(__ARM_ARCH_7M__) || defined(__ARM_ARCH_7EM__)   /* Cortex M */
    typedef unsigned            xdc_UInt32;
#else
    typedef unsigned long       xdc_UInt32;
#endif

__extension__ typedef long long           xdc_Int64;
__extension__ typedef unsigned long long  xdc_UInt64;

/*
 *  ======== Bits<n> ========
 */
typedef unsigned char       xdc_Bits8;
typedef unsigned short      xdc_Bits16;
typedef unsigned int       xdc_Bits32;
__extension__ typedef unsigned long long  xdc_Bits64;

/*
 *  ======== [IU]Arg ========
 */
typedef long            xdc_IArg;
typedef unsigned long   xdc_UArg;

#define xdc__ARG__
typedef xdc_IArg xdc_Arg;       /* deprecated, but compatible with BIOS 5.x */

/*
 *  ======== xdc__META ========
 */
#define xdc__META(n,s) __attribute__ ((section ("xdc.meta"))) const char (n)[] = {s}

#endif /* gnu_targets_STD_ */

/*
 *  @(#) gnu.targets; 1, 0, 1,672; 3-17-2014 16:49:45; /db/ztree/library/trees/xdctargets/xdctargets-h18x/src/ xlibrary

 */