NuMaker emWin HMI

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers GUI_ConfDefaults.h Source File

GUI_ConfDefaults.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        : GUI_ConfDefaults.h
00040 Purpose     : Defaults for GUI config switches.
00041 ---------------------------END-OF-HEADER------------------------------
00042 
00043 Attention : Do not modify this file ! If you do, you will not
00044             be able do update to a later GUI version !
00045 
00046 */
00047 
00048 #ifndef  GUI_CONFDEFAULTS_H
00049 #define  GUI_CONFDEFAULTS_H
00050 
00051 #include "GUIConf.h"
00052 
00053 #ifndef   GUI_USE_MIXCOLORS
00054   #define GUI_USE_MIXCOLORS 1
00055 #endif
00056 
00057 #ifndef   GUI_USE_BIDI2
00058   #define GUI_USE_BIDI2 1
00059 #endif
00060 
00061 #ifndef   LCD_MAX_LOG_COLORS
00062   #define LCD_MAX_LOG_COLORS 256
00063 #else
00064   #if (LCD_MAX_LOG_COLORS > 256)
00065     #error The value of LCD_MAX_LOG_COLORS must be <= 256!
00066   #endif
00067 #endif
00068 
00069 #define LCD_PIXELINDEX U32
00070 
00071 #ifndef LCD_YMAG
00072   #define LCD_YMAG 1
00073 #endif
00074 #ifndef LCD_XMAG
00075   #define LCD_XMAG 1
00076 #endif
00077 
00078 /**********************************************************************
00079 *
00080 *       Defaults for config switches
00081 *
00082 ***********************************************************************
00083 */
00084 
00085 /* ATTENTION: This define swaps the meaning of a logical color from
00086    ABGR to ARGB.
00087    
00088    It further swaps the meaning of a transparent pixel:
00089    ABGR: 0x00 means opaque, 0xFF means transparent
00090    ARGB: 0x00 means transparent, 0xFF means opaque (default)
00091 */
00092 #ifndef GUI_USE_ARGB
00093   #define GUI_USE_ARGB 1
00094 #endif
00095 
00096 /* Define "universal pointer". Normally, this is not needed (define will expand to nothing)
00097    However, on some systems (AVR - IAR compiler) it can be necessary ( -> __generic),
00098    since a default pointer can access RAM only, not the built-in Flash
00099 */
00100 #ifndef GUI_UNI_PTR
00101   #define GUI_UNI_PTR /* Remains only for compatibility purpose, no longer used in emWin */
00102 #endif
00103 
00104 /* Define const storage. Normally, this is not needed (define will expand to const)
00105    However, on some systems (AVR - IAR compiler) it can be necessary ( -> __flash const),
00106    since otherwise constants are copied into RAM
00107 */
00108 #ifndef GUI_CONST_STORAGE
00109   #define GUI_CONST_STORAGE const
00110 #endif
00111 
00112 #ifndef GUI_USE_MEMDEV_1BPP_FOR_SCREEN
00113   #define GUI_USE_MEMDEV_1BPP_FOR_SCREEN 1
00114 #endif
00115 
00116 #ifndef GUI_BIDI_MAX_CHARS_PER_LINE
00117   #if GUI_USE_BIDI2
00118     #define GUI_BIDI_MAX_CHARS_PER_LINE 200
00119   #else
00120     #define GUI_BIDI_MAX_CHARS_PER_LINE  80
00121   #endif
00122 #endif
00123 
00124 #ifndef GUI_SUPPORT_TOUCH
00125   #define GUI_SUPPORT_TOUCH   0
00126 #endif
00127 
00128 #ifndef GUI_SUPPORT_MOUSE
00129   #define GUI_SUPPORT_MOUSE   0
00130 #endif
00131 
00132 #ifndef GUI_SUPPORT_MEMDEV
00133   #define GUI_SUPPORT_MEMDEV  0
00134 #endif
00135 
00136 #ifndef GUI_OS
00137   #define GUI_OS              0
00138 #endif
00139 
00140 #ifndef GUI_NUM_LAYERS
00141   #define GUI_NUM_LAYERS      1
00142 #endif
00143 
00144 #ifndef GUI_SUPPORT_CURSOR
00145   #define GUI_SUPPORT_CURSOR  (GUI_SUPPORT_MOUSE | GUI_SUPPORT_TOUCH)
00146 #endif
00147 
00148 #ifndef   GUI_CURSOR_LAYER
00149   #define GUI_CURSOR_LAYER 0
00150 #endif
00151 
00152 #ifndef GUI_SUPPORT_ROTATION
00153   #define GUI_SUPPORT_ROTATION 1
00154 #endif
00155 
00156 /* In order to avoid warnings for undefined parameters */
00157 #ifndef GUI_USE_PARA
00158   #if defined (__BORLANDC__) || defined(NC30) || defined(NC308)
00159     #define GUI_USE_PARA(para)
00160   #else
00161     #define GUI_USE_PARA(para) (void)para
00162   #endif
00163 #endif
00164 
00165 /* Default for types */
00166 #ifndef GUI_TIMER_TIME
00167   #define GUI_TIMER_TIME int  /* default is to use 16 bits for 16 bit CPUs,
00168                                32 bits on 32 bit CPUs for timing */
00169 #endif
00170 
00171 /* Types used for memory allocation */
00172 #define GUI_ALLOC_DATATYPE   I32
00173 #define GUI_ALLOC_DATATYPE_U U32
00174 
00175 #ifndef   GUI_MAX_XBF_BYTES
00176   #define GUI_MAX_XBF_BYTES 200
00177 #endif
00178 
00179 #ifndef   GUI_MEMSET
00180   #define GUI_MEMSET memset
00181 #endif
00182 
00183 #ifndef GUI_MEMCPY
00184   #define GUI_MEMCPY memcpy
00185 #endif
00186 
00187 /* Optional custom drawing of memory devices */
00188 #ifndef   GUI_MEMDEV_SUPPORT_CUSTOMDRAW
00189   #define GUI_MEMDEV_SUPPORT_CUSTOMDRAW 0
00190 #endif
00191 
00192 /* Clip static memory devices to parent borders */
00193 #ifndef   GUI_MEMDEV_CLIP_AT_PARENT
00194   #define GUI_MEMDEV_CLIP_AT_PARENT 0
00195 #endif
00196 
00197 #endif   /* ifdef GUI_CONFDEFAULTS_H */
00198 
00199 /*************************** End of file ****************************/