NuMaker emWin HMI

Committer:
csyang2
Date:
Mon Mar 04 15:47:41 2024 +0800
Revision:
10:c8165817d92a
Parent:
1:c0f972361605
Support NuMaker-IoT-M467

Who changed what in which revision?

UserRevisionLine numberNew contents of line
csyang2 1:c0f972361605 1 /*********************************************************************
csyang2 1:c0f972361605 2 * SEGGER Software GmbH *
csyang2 1:c0f972361605 3 * Solutions for real time microcontroller applications *
csyang2 1:c0f972361605 4 **********************************************************************
csyang2 1:c0f972361605 5 * *
csyang2 1:c0f972361605 6 * (c) 1996 - 2018 SEGGER Microcontroller GmbH *
csyang2 1:c0f972361605 7 * *
csyang2 1:c0f972361605 8 * Internet: www.segger.com Support: support@segger.com *
csyang2 1:c0f972361605 9 * *
csyang2 1:c0f972361605 10 **********************************************************************
csyang2 1:c0f972361605 11
csyang2 1:c0f972361605 12 ** emWin V5.48 - Graphical user interface for embedded applications **
csyang2 1:c0f972361605 13 All Intellectual Property rights in the Software belongs to SEGGER.
csyang2 1:c0f972361605 14 emWin is protected by international copyright laws. Knowledge of the
csyang2 1:c0f972361605 15 source code may not be used to write a similar product. This file may
csyang2 1:c0f972361605 16 only be used in accordance with the following terms:
csyang2 1:c0f972361605 17
csyang2 1:c0f972361605 18 The software has been licensed by SEGGER Software GmbH to Nuvoton Technology Corporationat the address: No. 4, Creation Rd. III, Hsinchu Science Park, Taiwan
csyang2 1:c0f972361605 19 for the purposes of creating libraries for its
csyang2 1:c0f972361605 20 Arm Cortex-M and Arm9 32-bit microcontrollers, commercialized and distributed by Nuvoton Technology Corporation
csyang2 1:c0f972361605 21 under the terms and conditions of an End User
csyang2 1:c0f972361605 22 License Agreement supplied with the libraries.
csyang2 1:c0f972361605 23 Full source code is available at: www.segger.com
csyang2 1:c0f972361605 24
csyang2 1:c0f972361605 25 We appreciate your understanding and fairness.
csyang2 1:c0f972361605 26 ----------------------------------------------------------------------
csyang2 1:c0f972361605 27 Licensing information
csyang2 1:c0f972361605 28 Licensor: SEGGER Software GmbH
csyang2 1:c0f972361605 29 Licensed to: Nuvoton Technology Corporation, No. 4, Creation Rd. III, Hsinchu Science Park, 30077 Hsinchu City, Taiwan
csyang2 1:c0f972361605 30 Licensed SEGGER software: emWin
csyang2 1:c0f972361605 31 License number: GUI-00735
csyang2 1:c0f972361605 32 License model: emWin License Agreement, signed February 27, 2018
csyang2 1:c0f972361605 33 Licensed platform: Cortex-M and ARM9 32-bit series microcontroller designed and manufactured by or for Nuvoton Technology Corporation
csyang2 1:c0f972361605 34 ----------------------------------------------------------------------
csyang2 1:c0f972361605 35 Support and Update Agreement (SUA)
csyang2 1:c0f972361605 36 SUA period: 2018-03-26 - 2019-03-27
csyang2 1:c0f972361605 37 Contact to extend SUA: sales@segger.com
csyang2 1:c0f972361605 38 ----------------------------------------------------------------------
csyang2 1:c0f972361605 39 File : Global.h
csyang2 1:c0f972361605 40 Purpose : Global types
csyang2 1:c0f972361605 41 In case your application already has a Global.h, you should
csyang2 1:c0f972361605 42 merge the files. In order to use Segger code, the types
csyang2 1:c0f972361605 43 U8, U16, U32, I8, I16, I32 need to be defined in Global.h;
csyang2 1:c0f972361605 44 additional definitions do not hurt.
csyang2 1:c0f972361605 45 Revision: $Rev: 9374 $
csyang2 1:c0f972361605 46 ---------------------------END-OF-HEADER------------------------------
csyang2 1:c0f972361605 47 */
csyang2 1:c0f972361605 48
csyang2 1:c0f972361605 49 #ifndef GLOBAL_H // Guard against multiple inclusion
csyang2 1:c0f972361605 50 #define GLOBAL_H
csyang2 1:c0f972361605 51
csyang2 1:c0f972361605 52 #define U8 unsigned char
csyang2 1:c0f972361605 53 #define I8 signed char
csyang2 1:c0f972361605 54 #define U16 unsigned short
csyang2 1:c0f972361605 55 #define I16 signed short
csyang2 1:c0f972361605 56 #ifdef __x86_64__
csyang2 1:c0f972361605 57 #define U32 unsigned
csyang2 1:c0f972361605 58 #define I32 int
csyang2 1:c0f972361605 59 #else
csyang2 1:c0f972361605 60 #define U32 unsigned long
csyang2 1:c0f972361605 61 #define I32 signed long
csyang2 1:c0f972361605 62 #endif
csyang2 1:c0f972361605 63
csyang2 1:c0f972361605 64 #if defined(_WIN32) && !defined(__clang__) && !defined(__MINGW32__)
csyang2 1:c0f972361605 65 //
csyang2 1:c0f972361605 66 // Microsoft VC6 compiler related
csyang2 1:c0f972361605 67 //
csyang2 1:c0f972361605 68 #define U64 unsigned __int64
csyang2 1:c0f972361605 69 #define U128 unsigned __int128
csyang2 1:c0f972361605 70 #define I64 __int64
csyang2 1:c0f972361605 71 #define I128 __int128
csyang2 1:c0f972361605 72 #if _MSC_VER <= 1200
csyang2 1:c0f972361605 73 #define U64_C(x) x##UI64
csyang2 1:c0f972361605 74 #else
csyang2 1:c0f972361605 75 #define U64_C(x) x##ULL
csyang2 1:c0f972361605 76 #endif
csyang2 1:c0f972361605 77 #else
csyang2 1:c0f972361605 78 //
csyang2 1:c0f972361605 79 // C99 compliant compiler
csyang2 1:c0f972361605 80 //
csyang2 1:c0f972361605 81 #define U64 unsigned long long
csyang2 1:c0f972361605 82 #define I64 signed long long
csyang2 1:c0f972361605 83 #define U64_C(x) x##ULL
csyang2 1:c0f972361605 84 #endif
csyang2 1:c0f972361605 85
csyang2 1:c0f972361605 86 #ifndef PTR_ADDR
csyang2 1:c0f972361605 87 #if (defined(_WIN64) || defined(__LP64__)) // 64-bit symbols used by Visual Studio and GCC, maybe others as well.
csyang2 1:c0f972361605 88 #define PTR_ADDR U64
csyang2 1:c0f972361605 89 #else
csyang2 1:c0f972361605 90 #define PTR_ADDR U32
csyang2 1:c0f972361605 91 #endif
csyang2 1:c0f972361605 92 #endif
csyang2 1:c0f972361605 93
csyang2 1:c0f972361605 94 #endif // Avoid multiple inclusion
csyang2 1:c0f972361605 95
csyang2 1:c0f972361605 96 /*************************** End of file ****************************/