Headers for emWin lib

Dependents:   DISCO-F746NG_rtos_test

Committer:
redbird
Date:
Sat Mar 26 22:49:50 2016 +0000
Revision:
0:1bf8f02b0770
new code integration

Who changed what in which revision?

UserRevisionLine numberNew contents of line
redbird 0:1bf8f02b0770 1 /*********************************************************************
redbird 0:1bf8f02b0770 2 * SEGGER Microcontroller GmbH & Co. KG *
redbird 0:1bf8f02b0770 3 * Solutions for real time microcontroller applications *
redbird 0:1bf8f02b0770 4 **********************************************************************
redbird 0:1bf8f02b0770 5 * *
redbird 0:1bf8f02b0770 6 * (c) 1996 - 2014 SEGGER Microcontroller GmbH & Co. KG *
redbird 0:1bf8f02b0770 7 * *
redbird 0:1bf8f02b0770 8 * Internet: www.segger.com Support: support@segger.com *
redbird 0:1bf8f02b0770 9 * *
redbird 0:1bf8f02b0770 10 **********************************************************************
redbird 0:1bf8f02b0770 11
redbird 0:1bf8f02b0770 12 ** emWin V5.24 - Graphical user interface for embedded applications **
redbird 0:1bf8f02b0770 13 All Intellectual Property rights in the Software belongs to SEGGER.
redbird 0:1bf8f02b0770 14 emWin is protected by international copyright laws. Knowledge of the
redbird 0:1bf8f02b0770 15 source code may not be used to write a similar product. This file may
redbird 0:1bf8f02b0770 16 only be used in accordance with the following terms:
redbird 0:1bf8f02b0770 17
redbird 0:1bf8f02b0770 18 The software has been licensed to NXP Semiconductors USA, Inc. whose
redbird 0:1bf8f02b0770 19 registered office is situated at 411 E. Plumeria Drive, San Jose,
redbird 0:1bf8f02b0770 20 CA 95134, USA solely for the purposes of creating libraries for
redbird 0:1bf8f02b0770 21 NXPs M0, M3/M4 and ARM7/9 processor-based devices, sublicensed and
redbird 0:1bf8f02b0770 22 distributed under the terms and conditions of the NXP End User License
redbird 0:1bf8f02b0770 23 Agreement.
redbird 0:1bf8f02b0770 24 Full source code is available at: www.segger.com
redbird 0:1bf8f02b0770 25
redbird 0:1bf8f02b0770 26 We appreciate your understanding and fairness.
redbird 0:1bf8f02b0770 27 ----------------------------------------------------------------------
redbird 0:1bf8f02b0770 28 File : GUI_ConfDefaults.h
redbird 0:1bf8f02b0770 29 Purpose : Defaults for GUI config switches.
redbird 0:1bf8f02b0770 30 ---------------------------END-OF-HEADER------------------------------
redbird 0:1bf8f02b0770 31
redbird 0:1bf8f02b0770 32 Attention : Do not modify this file ! If you do, you will not
redbird 0:1bf8f02b0770 33 be able do update to a later GUI version !
redbird 0:1bf8f02b0770 34
redbird 0:1bf8f02b0770 35 */
redbird 0:1bf8f02b0770 36
redbird 0:1bf8f02b0770 37 #ifndef GUI_CONFDEFAULTS_H
redbird 0:1bf8f02b0770 38 #define GUI_CONFDEFAULTS_H
redbird 0:1bf8f02b0770 39
redbird 0:1bf8f02b0770 40 #include "GUIConf.h"
redbird 0:1bf8f02b0770 41
redbird 0:1bf8f02b0770 42 #ifndef LCD_MAX_LOG_COLORS
redbird 0:1bf8f02b0770 43 #define LCD_MAX_LOG_COLORS 256
redbird 0:1bf8f02b0770 44 #else
redbird 0:1bf8f02b0770 45 #if (LCD_MAX_LOG_COLORS > 256)
redbird 0:1bf8f02b0770 46 #error The value of LCD_MAX_LOG_COLORS must be <= 256!
redbird 0:1bf8f02b0770 47 #endif
redbird 0:1bf8f02b0770 48 #endif
redbird 0:1bf8f02b0770 49
redbird 0:1bf8f02b0770 50 #define LCD_PIXELINDEX U32
redbird 0:1bf8f02b0770 51
redbird 0:1bf8f02b0770 52 #ifndef LCD_YMAG
redbird 0:1bf8f02b0770 53 #define LCD_YMAG 1
redbird 0:1bf8f02b0770 54 #endif
redbird 0:1bf8f02b0770 55 #ifndef LCD_XMAG
redbird 0:1bf8f02b0770 56 #define LCD_XMAG 1
redbird 0:1bf8f02b0770 57 #endif
redbird 0:1bf8f02b0770 58
redbird 0:1bf8f02b0770 59 /**********************************************************************
redbird 0:1bf8f02b0770 60 *
redbird 0:1bf8f02b0770 61 * Defaults for config switches
redbird 0:1bf8f02b0770 62 *
redbird 0:1bf8f02b0770 63 ***********************************************************************
redbird 0:1bf8f02b0770 64 */
redbird 0:1bf8f02b0770 65
redbird 0:1bf8f02b0770 66 /* Define "universal pointer". Normally, this is not needed (define will expand to nothing)
redbird 0:1bf8f02b0770 67 However, on some systems (AVR - IAR compiler) it can be necessary ( -> __generic),
redbird 0:1bf8f02b0770 68 since a default pointer can access RAM only, not the built-in Flash
redbird 0:1bf8f02b0770 69 */
redbird 0:1bf8f02b0770 70 #ifndef GUI_UNI_PTR
redbird 0:1bf8f02b0770 71 #define GUI_UNI_PTR /* Remains only for compatibility purpose, no longer used in emWin */
redbird 0:1bf8f02b0770 72 #endif
redbird 0:1bf8f02b0770 73
redbird 0:1bf8f02b0770 74 /* Define const storage. Normally, this is not needed (define will expand to const)
redbird 0:1bf8f02b0770 75 However, on some systems (AVR - IAR compiler) it can be necessary ( -> __flash const),
redbird 0:1bf8f02b0770 76 since otherwise constants are copied into RAM
redbird 0:1bf8f02b0770 77 */
redbird 0:1bf8f02b0770 78 #ifndef GUI_CONST_STORAGE
redbird 0:1bf8f02b0770 79 #define GUI_CONST_STORAGE const
redbird 0:1bf8f02b0770 80 #endif
redbird 0:1bf8f02b0770 81
redbird 0:1bf8f02b0770 82 #ifndef GUI_USE_MEMDEV_1BPP_FOR_SCREEN
redbird 0:1bf8f02b0770 83 #define GUI_USE_MEMDEV_1BPP_FOR_SCREEN 1
redbird 0:1bf8f02b0770 84 #endif
redbird 0:1bf8f02b0770 85
redbird 0:1bf8f02b0770 86 #ifndef GUI_BIDI_MAX_CHARS_PER_LINE
redbird 0:1bf8f02b0770 87 #define GUI_BIDI_MAX_CHARS_PER_LINE 80
redbird 0:1bf8f02b0770 88 #endif
redbird 0:1bf8f02b0770 89
redbird 0:1bf8f02b0770 90 #ifndef GUI_SUPPORT_TOUCH
redbird 0:1bf8f02b0770 91 #define GUI_SUPPORT_TOUCH 0
redbird 0:1bf8f02b0770 92 #endif
redbird 0:1bf8f02b0770 93
redbird 0:1bf8f02b0770 94 #ifndef GUI_SUPPORT_MOUSE
redbird 0:1bf8f02b0770 95 #define GUI_SUPPORT_MOUSE 0
redbird 0:1bf8f02b0770 96 #endif
redbird 0:1bf8f02b0770 97
redbird 0:1bf8f02b0770 98 #ifndef GUI_SUPPORT_MEMDEV
redbird 0:1bf8f02b0770 99 #define GUI_SUPPORT_MEMDEV 0
redbird 0:1bf8f02b0770 100 #endif
redbird 0:1bf8f02b0770 101
redbird 0:1bf8f02b0770 102 #ifndef GUI_OS
redbird 0:1bf8f02b0770 103 #define GUI_OS 0
redbird 0:1bf8f02b0770 104 #endif
redbird 0:1bf8f02b0770 105
redbird 0:1bf8f02b0770 106 #ifndef GUI_NUM_LAYERS
redbird 0:1bf8f02b0770 107 #define GUI_NUM_LAYERS 1
redbird 0:1bf8f02b0770 108 #endif
redbird 0:1bf8f02b0770 109
redbird 0:1bf8f02b0770 110 #ifndef GUI_SUPPORT_CURSOR
redbird 0:1bf8f02b0770 111 #define GUI_SUPPORT_CURSOR (GUI_SUPPORT_MOUSE | GUI_SUPPORT_TOUCH)
redbird 0:1bf8f02b0770 112 #endif
redbird 0:1bf8f02b0770 113
redbird 0:1bf8f02b0770 114 #ifndef GUI_CURSOR_LAYER
redbird 0:1bf8f02b0770 115 #define GUI_CURSOR_LAYER 0
redbird 0:1bf8f02b0770 116 #endif
redbird 0:1bf8f02b0770 117
redbird 0:1bf8f02b0770 118 #ifndef GUI_MEMCPY
redbird 0:1bf8f02b0770 119 #define GUI_MEMCPY(pDest, pSrc, NumBytes) memcpy(pDest, pSrc, NumBytes)
redbird 0:1bf8f02b0770 120 #endif
redbird 0:1bf8f02b0770 121
redbird 0:1bf8f02b0770 122 #ifndef GUI_SUPPORT_ROTATION
redbird 0:1bf8f02b0770 123 #define GUI_SUPPORT_ROTATION 1
redbird 0:1bf8f02b0770 124 #endif
redbird 0:1bf8f02b0770 125
redbird 0:1bf8f02b0770 126 /* In order to avoid warnings for undefined parameters */
redbird 0:1bf8f02b0770 127 #ifndef GUI_USE_PARA
redbird 0:1bf8f02b0770 128 #if defined (__BORLANDC__) || defined(NC30) || defined(NC308)
redbird 0:1bf8f02b0770 129 #define GUI_USE_PARA(para)
redbird 0:1bf8f02b0770 130 #else
redbird 0:1bf8f02b0770 131 #define GUI_USE_PARA(para) (void)para
redbird 0:1bf8f02b0770 132 #endif
redbird 0:1bf8f02b0770 133 #endif
redbird 0:1bf8f02b0770 134
redbird 0:1bf8f02b0770 135 /* Default for types */
redbird 0:1bf8f02b0770 136 #ifndef GUI_TIMER_TIME
redbird 0:1bf8f02b0770 137 #define GUI_TIMER_TIME int /* default is to use 16 bits for 16 bit CPUs,
redbird 0:1bf8f02b0770 138 32 bits on 32 bit CPUs for timing */
redbird 0:1bf8f02b0770 139 #endif
redbird 0:1bf8f02b0770 140
redbird 0:1bf8f02b0770 141 /* Types used for memory allocation */
redbird 0:1bf8f02b0770 142 #define GUI_ALLOC_DATATYPE I32
redbird 0:1bf8f02b0770 143 #define GUI_ALLOC_DATATYPE_U U32
redbird 0:1bf8f02b0770 144
redbird 0:1bf8f02b0770 145 #ifndef GUI_MAX_XBF_BYTES
redbird 0:1bf8f02b0770 146 #define GUI_MAX_XBF_BYTES 200
redbird 0:1bf8f02b0770 147 #endif
redbird 0:1bf8f02b0770 148
redbird 0:1bf8f02b0770 149 #ifndef GUI_MEMSET
redbird 0:1bf8f02b0770 150 #define GUI_MEMSET GUI__memset
redbird 0:1bf8f02b0770 151 #endif
redbird 0:1bf8f02b0770 152
redbird 0:1bf8f02b0770 153
redbird 0:1bf8f02b0770 154 #endif /* ifdef GUI_CONFDEFAULTS_H */
redbird 0:1bf8f02b0770 155
redbird 0:1bf8f02b0770 156 /*************************** End of file ****************************/