CI130X SDK API手册  2.2.0
本手册用于描述CI130X SDK各个组件和驱动API
Global.h
浏览该文件的文档.
1 /*********************************************************************
2 * SEGGER Microcontroller GmbH *
3 * The Embedded Experts *
4 **********************************************************************
5 * *
6 * (c) 1995 - 2019 SEGGER Microcontroller GmbH *
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 SystemView and 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 * condition is met: *
25 * *
26 * o Redistributions of source code must retain the above copyright *
27 * notice, this condition and the following disclaimer. *
28 * *
29 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND *
30 * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, *
31 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF *
32 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE *
33 * DISCLAIMED. IN NO EVENT SHALL SEGGER Microcontroller BE LIABLE FOR *
34 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR *
35 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT *
36 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; *
37 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF *
38 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT *
39 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE *
40 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH *
41 * DAMAGE. *
42 * *
43 **********************************************************************
44 * *
45 * SystemView version: 3.10 *
46 * *
47 **********************************************************************
48 -------------------------- END-OF-HEADER -----------------------------
49 */
50 
51 #ifndef GLOBAL_H // Guard against multiple inclusion
52 #define GLOBAL_H
53 
54 #define U8 unsigned char
55 #define U16 unsigned short
56 #define U32 unsigned long
57 #define I8 signed char
58 #define I16 signed short
59 #define I32 signed long
60 
61 #ifdef _WIN32
62  //
63  // Microsoft VC6 compiler related
64  //
65  #define U64 unsigned __int64
66  #define U128 unsigned __int128
67  #define I64 __int64
68  #define I128 __int128
69  #if _MSC_VER <= 1200
70  #define U64_C(x) x##UI64
71  #else
72  #define U64_C(x) x##ULL
73  #endif
74 #else
75  //
76  // C99 compliant compiler
77  //
78  #define U64 unsigned long long
79  #define I64 signed long long
80  #define U64_C(x) x##ULL
81 #endif
82 
83 #endif // Avoid multiple inclusion
84 
85 /*************************** End of file ****************************/