-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGraphicsConfig.h
161 lines (144 loc) · 7.63 KB
/
GraphicsConfig.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
/*****************************************************************************
* Microchip Graphics Library
*****************************************************************************
* FileName: GraphicsConfig.h
* Processor: PIC24F, PIC24H, dsPIC, PIC32
* Compiler: MPLAB C30/C32
* Company: Microchip Technology Incorporated
*
* Software License Agreement
*
* Copyright © 2010 Microchip Technology Inc. All rights reserved.
* Microchip licenses to you the right to use, modify, copy and distribute
* Software only when embedded on a Microchip microcontroller or digital
* signal controller, which is integrated into your product or third party
* product (pursuant to the sublicense terms in the accompanying license
* agreement).
*
* You should refer to the license agreement accompanying this Software
* for additional information regarding your rights and obligations.
*
* SOFTWARE AND DOCUMENTATION ARE PROVIDED “AS IS” WITHOUT WARRANTY OF ANY
* KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY
* OF MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR
* PURPOSE. IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR
* OBLIGATED UNDER CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION,
* BREACH OF WARRANTY, OR OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT
* DAMAGES OR EXPENSES INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL,
* INDIRECT, PUNITIVE OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA,
* COST OF PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY
* CLAIMS BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF),
* OR OTHER SIMILAR COSTS.
*
* Date Comment
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*
*****************************************************************************/
#ifndef _GRAPHICSCONFIG_H
#define _GRAPHICSCONFIG_H
//////////////////// COMPILE OPTIONS AND DEFAULTS ////////////////////
/*********************************************************************
* Overview: Blocking and Non-Blocking configuration selection. To
* enable non-blocking configuration USE_NONBLOCKING_CONFIG
* must be defined. If this is not defined, blocking
* configuration is assumed.
*
********************************************************************/
#define USE_NONBLOCKING_CONFIG // Comment this line to use blocking configuration
/*********************************************************************
* Overview: Using Palettes, different colors can be used with the same
* bit depth.
*
********************************************************************/
//#define USE_PALETTE // Comment this line if Palette is not required.
#ifdef USE_PALETTE
//#define USE_PALETTE_EXTERNAL // Uncomment this line if Palette must be stored in External Memory.
#endif
/*********************************************************************
* Overview: Keyboard control on some objects can be used by enabling
* the GOL Focus (USE_FOCUS)support.
*
*********************************************************************/
#define USE_FOCUS
/*********************************************************************
* Overview: Input devices used defines the messages that Objects will
* process. The following definitions indicate the usage of
* the different input device:
* - USE_TOUCHSCREEN - enables the touch screen support.
* - USE_KEYBOARD - enables the key board support.
*
*********************************************************************/
#define USE_TOUCHSCREEN // Enable touch screen support.
#define USE_KEYBOARD // Enable key board support.
/*********************************************************************
* Overview: To save program memory, unused Widgets or Objects can be
* removed at compile time.
*
*********************************************************************/
#define USE_GOL // Enable Graphics Object Layer.
//#define USE_BUTTON // Enable Button Object.
//#define USE_WINDOW // Enable Window Object.
//#define USE_CHECKBOX // Enable Checkbox Object.
//#define USE_RADIOBUTTON // Enable Radio Button Object.
//#define USE_EDITBOX // Enable Edit Box Object.
//#define USE_LISTBOX // Enable List Box Object.
//#define USE_SLIDER // Enable Slider or Scroll Bar Object.
//#define USE_PROGRESSBAR // Enable Progress Bar Object.
//#define USE_STATICTEXT // Enable Static Text Object.
//#define USE_PICTURE // Enable Picture Object.
//#define USE_GROUPBOX // Enable Group Box Object.
//#define USE_ROUNDDIAL // Enable Dial Object.
//#define USE_METER // Enable Meter Object.
//#define USE_TEXTENTRY // Enable TextEntry Object.
//#define USE_CUSTOM // Enable Custom Control Object (an example to create customized Object).
/*********************************************************************
* Overview: To enable support for unicode fonts, USE_MULTIBYTECHAR
* must be defined. This changes XCHAR definition. See XCHAR
* for details.
*
*********************************************************************/
//#define USE_MULTIBYTECHAR
/*********************************************************************
* Overview: Font data can be placed in two locations. One is in
* FLASH memory and the other is from external memory.
* Definining one or both enables the support for fonts located
* in internal flash and external memory.
* - USE_FONT_FLASH - Font in internal flash memory support.
* - USE_FONT_EXTERNAL - Font in external memory support.
*
*********************************************************************/
#define USE_FONT_FLASH // Support for fonts located in internal flash
//#define USE_FONT_EXTERNAL // Support for fonts located in external memory
/*********************************************************************
* Overview: Similar to Font data bitmaps can also be placed in
* two locations. One is in FLASH memory and the other is
* from external memory.
* Definining one or both enables the support for bitmaps located
* in internal flash and external memory.
* - USE_BITMAP_FLASH - Font in internal flash memory support.
* - USE_BITMAP_EXTERNAL - Font in external memory support.
*
*********************************************************************/
#define USE_BITMAP_FLASH // Support for bitmaps located in internal flash
//#define USE_BITMAP_EXTERNAL // Support for bitmaps located in external memory
//#define USE_COMP_RLE // Support for bitmaps located in internal flash
#ifdef __PIC24FJ256DA210__
#define USE_COMP_IPU
#endif
/*********************************************************************
* Overview: Define the malloc() and free() for versatility on OS
* based systems.
*
*********************************************************************/
#define GFX_malloc(size) malloc(size)
#define GFX_free(pObj) free(pObj)
/*********************************************************************
* Overview: Specifies the color depth used in the demo.
*
*********************************************************************/
#define COLOR_DEPTH 16
// GDD_GraphicsConfig.h should be included as the last line in this file (GraphicsConfig.h).
// The file checks if a certain definition used by GDD has been defined yet or not,
// if not, it will define it. This allows end users to manually enable/disable other definitions.
#include "GDD_GraphicsConfig.h"
#endif // _GRAPHICSCONFIG_H