RT1050 GUI demo using emWin library

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers GUI_ConfDefaults.h Source File

GUI_ConfDefaults.h

00001 /*********************************************************************
00002 *                SEGGER Microcontroller GmbH & Co. KG                *
00003 *        Solutions for real time microcontroller applications        *
00004 **********************************************************************
00005 *                                                                    *
00006 *        (c) 1996 - 2016  SEGGER Microcontroller GmbH & Co. KG       *
00007 *                                                                    *
00008 *        Internet: www.segger.com    Support:  support@segger.com    *
00009 *                                                                    *
00010 **********************************************************************
00011 
00012 ** emWin V5.38 - 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 to  NXP Semiconductors USA, Inc.  whose
00019 registered  office  is  situated  at 411 E. Plumeria Drive, San  Jose,
00020 CA 95134, USA  solely for  the  purposes  of  creating  libraries  for
00021 NXPs M0, M3/M4 and  ARM7/9 processor-based  devices,  sublicensed  and
00022 distributed under the terms and conditions of the NXP End User License
00023 Agreement.
00024 Full source code is available at: www.segger.com
00025 
00026 We appreciate your understanding and fairness.
00027 ----------------------------------------------------------------------
00028 Licensing information
00029 
00030 Licensor:                 SEGGER Microcontroller Systems LLC
00031 Licensed to:              NXP Semiconductors, 1109 McKay Dr, M/S 76, San Jose, CA 95131, USA
00032 Licensed SEGGER software: emWin
00033 License number:           GUI-00186
00034 License model:            emWin License Agreement, dated August 20th 2011
00035 Licensed product:         -
00036 Licensed platform:        NXP's ARM 7/9, Cortex-M0,M3,M4
00037 Licensed number of seats: -
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_BIDI2
00054   #define GUI_USE_BIDI2 1
00055 #endif
00056 
00057 #ifndef   LCD_MAX_LOG_COLORS
00058   #define LCD_MAX_LOG_COLORS 256
00059 #else
00060   #if (LCD_MAX_LOG_COLORS > 256)
00061     #error The value of LCD_MAX_LOG_COLORS must be <= 256!
00062   #endif
00063 #endif
00064 
00065 #define LCD_PIXELINDEX U32
00066 
00067 #ifndef LCD_YMAG
00068   #define LCD_YMAG 1
00069 #endif
00070 #ifndef LCD_XMAG
00071   #define LCD_XMAG 1
00072 #endif
00073 
00074 /**********************************************************************
00075 *
00076 *       Defaults for config switches
00077 *
00078 ***********************************************************************
00079 */
00080 
00081 /* ATTENTION: This define swaps the meaning of a logical color from
00082    ABGR to ARGB.
00083    
00084    It further swaps the meaning of a transparent pixel:
00085    ABGR: 0x00 means opaque, 0xFF means transparent (default)
00086    ARGB: 0x00 means transparent, 0xFF means opaque
00087 */
00088 #ifndef GUI_USE_ARGB
00089   #define GUI_USE_ARGB 0
00090 #endif
00091 
00092 /* Define "universal pointer". Normally, this is not needed (define will expand to nothing)
00093    However, on some systems (AVR - IAR compiler) it can be necessary ( -> __generic),
00094    since a default pointer can access RAM only, not the built-in Flash
00095 */
00096 #ifndef GUI_UNI_PTR
00097   #define GUI_UNI_PTR /* Remains only for compatibility purpose, no longer used in emWin */
00098 #endif
00099 
00100 /* Define const storage. Normally, this is not needed (define will expand to const)
00101    However, on some systems (AVR - IAR compiler) it can be necessary ( -> __flash const),
00102    since otherwise constants are copied into RAM
00103 */
00104 #ifndef GUI_CONST_STORAGE
00105   #define GUI_CONST_STORAGE const
00106 #endif
00107 
00108 #ifndef GUI_USE_MEMDEV_1BPP_FOR_SCREEN
00109   #define GUI_USE_MEMDEV_1BPP_FOR_SCREEN 1
00110 #endif
00111 
00112 #ifndef GUI_BIDI_MAX_CHARS_PER_LINE
00113   #if GUI_USE_BIDI2
00114     #define GUI_BIDI_MAX_CHARS_PER_LINE 200
00115   #else
00116     #define GUI_BIDI_MAX_CHARS_PER_LINE  80
00117   #endif
00118 #endif
00119 
00120 #ifndef GUI_SUPPORT_TOUCH
00121   #define GUI_SUPPORT_TOUCH   0
00122 #endif
00123 
00124 #ifndef GUI_SUPPORT_MOUSE
00125   #define GUI_SUPPORT_MOUSE   0
00126 #endif
00127 
00128 #ifndef GUI_SUPPORT_MEMDEV
00129   #define GUI_SUPPORT_MEMDEV  0
00130 #endif
00131 
00132 #ifndef GUI_OS
00133   #define GUI_OS              0
00134 #endif
00135 
00136 #ifndef GUI_NUM_LAYERS
00137   #define GUI_NUM_LAYERS      1
00138 #endif
00139 
00140 #ifndef GUI_SUPPORT_CURSOR
00141   #define GUI_SUPPORT_CURSOR  (GUI_SUPPORT_MOUSE | GUI_SUPPORT_TOUCH)
00142 #endif
00143 
00144 #ifndef   GUI_CURSOR_LAYER
00145   #define GUI_CURSOR_LAYER 0
00146 #endif
00147 
00148 #ifndef GUI_MEMCPY
00149   #define GUI_MEMCPY(pDest, pSrc, NumBytes) memcpy(pDest, pSrc, NumBytes)
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 GUI__memset
00181 #endif
00182 
00183 /* Optional custom drawing of memory devices */
00184 #ifndef   GUI_MEMDEV_SUPPORT_CUSTOMDRAW
00185   #define GUI_MEMDEV_SUPPORT_CUSTOMDRAW 0
00186 #endif
00187 
00188 /* Clip static memory devices to parent borders */
00189 #ifndef   GUI_MEMDEV_CLIP_AT_PARENT
00190   #define GUI_MEMDEV_CLIP_AT_PARENT 0
00191 #endif
00192 
00193 #endif   /* ifdef GUI_CONFDEFAULTS_H */
00194 
00195 /*************************** End of file ****************************/