1 /*
2 * Copyright (c) 2008 Texas Instruments and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * Texas Instruments - initial implementation
10 *
11 * */
12 /*
13 * ======== gnu/targets/std.h ========
14 *
15 */
17 #ifndef gnu_targets_STD_
18 #define gnu_targets_STD_
20 /* include target-specific "portable" macros */
21 #if defined(xdc_target_name__) & !defined(xdc_target_macros_include__)
22 #include xdc__local_include(xdc_target_name__)
23 #endif
25 /*
26 * xdc__LONGLONG__ indicates if compiler supports 'long long' type
27 * xdc__BITS<n> __ indicates if compiler supports 'uint<n>_t' type
28 */
29 #define xdc__LONGLONG__
30 #define xdc__BITS8__
31 #define xdc__BITS16__
32 #define xdc__BITS32__
33 #define xdc__BITS64__
34 #define xdc__INT64__
36 /*
37 * ======== [U]Int<n> ========
38 */
39 typedef signed char xdc_Int8;
40 typedef unsigned char xdc_UInt8;
41 typedef short xdc_Int16;
42 typedef unsigned short xdc_UInt16;
43 typedef int xdc_Int32;
45 #if defined(__ARM_ARCH_7M__) || defined(__ARM_ARCH_7EM__) /* Cortex M */
46 typedef unsigned xdc_UInt32;
47 #else
48 typedef unsigned long xdc_UInt32;
49 #endif
51 __extension__ typedef long long xdc_Int64;
52 __extension__ typedef unsigned long long xdc_UInt64;
54 /*
55 * ======== Bits<n> ========
56 */
57 typedef unsigned char xdc_Bits8;
58 typedef unsigned short xdc_Bits16;
59 typedef unsigned int xdc_Bits32;
60 __extension__ typedef unsigned long long xdc_Bits64;
62 /*
63 * ======== [IU]Arg ========
64 */
65 typedef long xdc_IArg;
66 typedef unsigned long xdc_UArg;
68 #define xdc__ARG__
69 typedef xdc_IArg xdc_Arg; /* deprecated, but compatible with BIOS 5.x */
71 /*
72 * ======== xdc__META ========
73 */
74 #define xdc__META(n, s) __attribute__ ((section("xdc.meta"))) const char (n)[] = { s }
76 #endif /* gnu_targets_STD_ */
78 /*
79 * @(#) gnu.targets; 1, 0, 1,603; 6-24-2013 15:21:46; /db/ztree/library/trees/xdctargets/xdctargets-g31x/src/ xlibrary
81 */