NuMaker emWin HMI

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Global.h Source File

Global.h

00001 /*********************************************************************
00002 *                 SEGGER Software GmbH                               *
00003 *        Solutions for real time microcontroller applications        *
00004 **********************************************************************
00005 *                                                                    *
00006 *        (c) 1996 - 2018  SEGGER Microcontroller GmbH                *
00007 *                                                                    *
00008 *        Internet: www.segger.com    Support:  support@segger.com    *
00009 *                                                                    *
00010 **********************************************************************
00011 
00012 ** emWin V5.48 - Graphical user interface for embedded applications **
00013 All  Intellectual Property rights in the Software belongs to  SEGGER.
00014 emWin is protected by  international copyright laws.  Knowledge of the
00015 source code may not be used to write a similar product. This file may
00016 only be used in accordance with the following terms:
00017 
00018 The  software has  been licensed by SEGGER Software GmbH to Nuvoton Technology Corporationat the address: No. 4, Creation Rd. III, Hsinchu Science Park, Taiwan
00019 for the purposes  of  creating  libraries  for its 
00020 Arm Cortex-M and  Arm9 32-bit microcontrollers, commercialized and distributed by Nuvoton Technology Corporation
00021 under  the terms and conditions  of  an  End  User  
00022 License  Agreement  supplied  with  the libraries.
00023 Full source code is available at: www.segger.com
00024 
00025 We appreciate your understanding and fairness.
00026 ----------------------------------------------------------------------
00027 Licensing information
00028 Licensor:                 SEGGER Software GmbH
00029 Licensed to:              Nuvoton Technology Corporation, No. 4, Creation Rd. III, Hsinchu Science Park, 30077 Hsinchu City, Taiwan
00030 Licensed SEGGER software: emWin
00031 License number:           GUI-00735
00032 License model:            emWin License Agreement, signed February 27, 2018
00033 Licensed platform:        Cortex-M and ARM9 32-bit series microcontroller designed and manufactured by or for Nuvoton Technology Corporation
00034 ----------------------------------------------------------------------
00035 Support and Update Agreement (SUA)
00036 SUA period:               2018-03-26 - 2019-03-27
00037 Contact to extend SUA:    sales@segger.com
00038 ----------------------------------------------------------------------
00039 File    : Global.h
00040 Purpose : Global types
00041           In case your application already has a Global.h, you should
00042           merge the files. In order to use Segger code, the types
00043           U8, U16, U32, I8, I16, I32 need to be defined in Global.h;
00044           additional definitions do not hurt.
00045 Revision: $Rev: 9374 $
00046 ---------------------------END-OF-HEADER------------------------------
00047 */
00048 
00049 #ifndef GLOBAL_H            // Guard against multiple inclusion
00050 #define GLOBAL_H
00051 
00052 #define U8    unsigned char
00053 #define I8    signed char
00054 #define U16   unsigned short
00055 #define I16   signed short
00056 #ifdef __x86_64__
00057 #define U32   unsigned
00058 #define I32   int
00059 #else
00060 #define U32   unsigned long
00061 #define I32   signed long
00062 #endif
00063 
00064 #if defined(_WIN32) && !defined(__clang__) && !defined(__MINGW32__)
00065   //
00066   // Microsoft VC6 compiler related
00067   //
00068   #define U64   unsigned __int64
00069   #define U128  unsigned __int128
00070   #define I64   __int64
00071   #define I128  __int128
00072   #if _MSC_VER <= 1200
00073     #define U64_C(x) x##UI64
00074   #else
00075     #define U64_C(x) x##ULL
00076   #endif
00077 #else
00078   //
00079   // C99 compliant compiler
00080   //
00081   #define U64   unsigned long long
00082   #define I64   signed long long
00083   #define U64_C(x) x##ULL
00084 #endif
00085 
00086 #ifndef PTR_ADDR
00087   #if (defined(_WIN64) || defined(__LP64__))  // 64-bit symbols used by Visual Studio and GCC, maybe others as well.
00088     #define PTR_ADDR  U64
00089   #else
00090     #define PTR_ADDR  U32
00091   #endif
00092 #endif
00093 
00094 #endif                      // Avoid multiple inclusion
00095 
00096 /*************************** End of file ****************************/