systemview  1.3.1
systemview
Global.h
1 /*********************************************************************
2 * SEGGER Microcontroller GmbH & Co. KG *
3 * The Embedded Experts *
4 **********************************************************************
5 * *
6 * (c) 2015 - 2017 SEGGER Microcontroller GmbH & Co. KG *
7 * *
8 * www.segger.com Support: support@segger.com *
9 * *
10 **********************************************************************
11 * *
12 * SEGGER SystemView * Real-time application analysis *
13 * *
14 **********************************************************************
15 * *
16 * All rights reserved. *
17 * *
18 * SEGGER strongly recommends to not make any changes *
19 * to or modify the source code of this software in order to stay *
20 * compatible with the RTT protocol and J-Link. *
21 * *
22 * Redistribution and use in source and binary forms, with or *
23 * without modification, are permitted provided that the following *
24 * conditions are met: *
25 * *
26 * o Redistributions of source code must retain the above copyright *
27 * notice, this list of conditions and the following disclaimer. *
28 * *
29 * o Redistributions in binary form must reproduce the above *
30 * copyright notice, this list of conditions and the following *
31 * disclaimer in the documentation and/or other materials provided *
32 * with the distribution. *
33 * *
34 * o Neither the name of SEGGER Microcontroller GmbH & Co. KG *
35 * nor the names of its contributors may be used to endorse or *
36 * promote products derived from this software without specific *
37 * prior written permission. *
38 * *
39 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND *
40 * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, *
41 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF *
42 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE *
43 * DISCLAIMED. IN NO EVENT SHALL SEGGER Microcontroller BE LIABLE FOR *
44 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR *
45 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT *
46 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; *
47 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF *
48 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT *
49 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE *
50 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH *
51 * DAMAGE. *
52 * *
53 **********************************************************************
54 * *
55 * SystemView version: V2.52a *
56 * *
57 **********************************************************************
58 ----------------------------------------------------------------------
59 File : Global.h
60 Purpose : Global types
61  In case your application already has a Global.h, you should
62  merge the files. In order to use Segger code, the types
63  U8, U16, U32, I8, I16, I32 need to be defined in Global.h;
64  additional definitions do not hurt.
65 ---------------------------END-OF-HEADER------------------------------
66 */
67 
68 #ifndef GLOBAL_H // Guard against multiple inclusion
69 #define GLOBAL_H
70 
71 #define U8 unsigned char
72 #define U16 unsigned short
73 #define U32 unsigned long
74 #define I8 signed char
75 #define I16 signed short
76 #define I32 signed long
77 
78 #ifdef _WIN32
79  //
80  // Microsoft VC6 compiler related
81  //
82  #define U64 unsigned __int64
83  #define U128 unsigned __int128
84  #define I64 __int64
85  #define I128 __int128
86  #if _MSC_VER <= 1200
87  #define U64_C(x) x##UI64
88  #else
89  #define U64_C(x) x##ULL
90  #endif
91 #else
92  //
93  // C99 compliant compiler
94  //
95  #define U64 unsigned long long
96  #define I64 signed long long
97  #define U64_C(x) x##ULL
98 #endif
99 
100 #endif // Avoid multiple inclusion
101 
102 /*************************** End of file ****************************/