version 2.8
gfxconf.example.h
1 /**
2  * This file has a different license to the rest of the uGFX system.
3  * You can copy, modify and distribute this file as you see fit.
4  * You do not need to publish your source modifications to this file.
5  * The only thing you are not permitted to do is to relicense it
6  * under a different license.
7  */
8 
9 /**
10  * Copy this file into your project directory and rename it as gfxconf.h
11  * Edit your copy to turn on the uGFX features you want to use.
12  * The values below are the defaults.
13  *
14  * Only remove the comments from lines where you want to change the
15  * default value. This allows definitions to be included from
16  * driver makefiles when required and provides the best future
17  * compatibility for your project.
18  *
19  * Please use spaces instead of tabs in this file.
20  */
21 
22 #ifndef _GFXCONF_H
23 #define _GFXCONF_H
24 
25 
26 ///////////////////////////////////////////////////////////////////////////
27 // GOS - One of these must be defined, preferably in your Makefile //
28 ///////////////////////////////////////////////////////////////////////////
29 //#define GFX_USE_OS_CHIBIOS FALSE
30 //#define GFX_USE_OS_FREERTOS FALSE
31 // #define GFX_FREERTOS_USE_TRACE FALSE
32 //#define GFX_USE_OS_WIN32 FALSE
33 //#define GFX_USE_OS_LINUX FALSE
34 //#define GFX_USE_OS_OSX FALSE
35 //#define GFX_USE_OS_ECOS FALSE
36 //#define GFX_USE_OS_RAWRTOS FALSE
37 //#define GFX_USE_OS_ARDUINO FALSE
38 //#define GFX_USE_OS_KEIL FALSE
39 //#define GFX_USE_OS_RTX5 FALSE
40 //#define GFX_USE_OS_CMSIS FALSE
41 //#define GFX_USE_OS_CMSIS2 FALSE
42 //#define GFX_USE_OS_RAW32 FALSE
43 //#define GFX_USE_OS_ZEPHYR FALSE
44 //#define GFX_USE_OS_NIOS FALSE
45 //#define GFX_USE_OS_QT FALSE
46 // #define INTERRUPTS_OFF() optional_code
47 // #define INTERRUPTS_ON() optional_code
48 
49 // Options that (should where relevant) apply to all operating systems
50 // #define GFX_NO_INLINE FALSE
51 // #define GFX_COMPILER GFX_COMPILER_UNKNOWN
52 // #define GFX_SHOW_COMPILER FALSE
53 // #define GFX_CPU GFX_CPU_UNKNOWN
54 // #define GFX_CPU_NO_ALIGNMENT_FAULTS FALSE
55 // #define GFX_CPU_ENDIAN GFX_CPU_ENDIAN_UNKNOWN
56 // #define GFX_OS_HEAP_SIZE 0
57 // #define GFX_OS_NO_INIT FALSE
58 // #define GFX_OS_INIT_NO_WARNING FALSE
59 // #define GFX_OS_PRE_INIT_FUNCTION myHardwareInitRoutine
60 // #define GFX_OS_EXTRA_INIT_FUNCTION myOSInitRoutine
61 // #define GFX_OS_EXTRA_DEINIT_FUNCTION myOSDeInitRoutine
62 // #define GFX_OS_CALL_UGFXMAIN FALSE
63 // #define GFX_OS_UGFXMAIN_STACKSIZE 0
64 // #define GFX_EMULATE_MALLOC FALSE
65 
66 
67 ///////////////////////////////////////////////////////////////////////////
68 // GDISP //
69 ///////////////////////////////////////////////////////////////////////////
70 //#define GFX_USE_GDISP FALSE
71 
72 //#define GDISP_NEED_AUTOFLUSH FALSE
73 //#define GDISP_NEED_TIMERFLUSH FALSE
74 //#define GDISP_NEED_VALIDATION TRUE
75 //#define GDISP_NEED_CLIP TRUE
76 //#define GDISP_NEED_CIRCLE FALSE
77 //#define GDISP_NEED_DUALCIRCLE FALSE
78 //#define GDISP_NEED_ELLIPSE FALSE
79 //#define GDISP_NEED_ARC FALSE
80 //#define GDISP_NEED_ARCSECTORS FALSE
81 //#define GDISP_NEED_CONVEX_POLYGON FALSE
82 //#define GDISP_NEED_SCROLL FALSE
83 //#define GDISP_NEED_PIXELREAD FALSE
84 //#define GDISP_NEED_CONTROL FALSE
85 //#define GDISP_NEED_QUERY FALSE
86 //#define GDISP_NEED_MULTITHREAD FALSE
87 //#define GDISP_NEED_STREAMING FALSE
88 //#define GDISP_NEED_TEXT FALSE
89 // #define GDISP_NEED_TEXT_WORDWRAP FALSE
90 // #define GDISP_NEED_TEXT_BOXPADLR 1
91 // #define GDISP_NEED_TEXT_BOXPADTB 1
92 // #define GDISP_NEED_ANTIALIAS FALSE
93 // #define GDISP_NEED_UTF8 FALSE
94 // #define GDISP_NEED_TEXT_KERNING FALSE
95 // #define GDISP_INCLUDE_FONT_UI1 FALSE
96 // #define GDISP_INCLUDE_FONT_UI2 FALSE // The smallest preferred font.
97 // #define GDISP_INCLUDE_FONT_LARGENUMBERS FALSE
98 // #define GDISP_INCLUDE_FONT_DEJAVUSANS10 FALSE
99 // #define GDISP_INCLUDE_FONT_DEJAVUSANS12 FALSE
100 // #define GDISP_INCLUDE_FONT_DEJAVUSANS16 FALSE
101 // #define GDISP_INCLUDE_FONT_DEJAVUSANS20 FALSE
102 // #define GDISP_INCLUDE_FONT_DEJAVUSANS24 FALSE
103 // #define GDISP_INCLUDE_FONT_DEJAVUSANS32 FALSE
104 // #define GDISP_INCLUDE_FONT_DEJAVUSANSBOLD12 FALSE
105 // #define GDISP_INCLUDE_FONT_FIXED_10X20 FALSE
106 // #define GDISP_INCLUDE_FONT_FIXED_7X14 FALSE
107 // #define GDISP_INCLUDE_FONT_FIXED_5X8 FALSE
108 // #define GDISP_INCLUDE_FONT_DEJAVUSANS12_AA FALSE
109 // #define GDISP_INCLUDE_FONT_DEJAVUSANS16_AA FALSE
110 // #define GDISP_INCLUDE_FONT_DEJAVUSANS20_AA FALSE
111 // #define GDISP_INCLUDE_FONT_DEJAVUSANS24_AA FALSE
112 // #define GDISP_INCLUDE_FONT_DEJAVUSANS32_AA FALSE
113 // #define GDISP_INCLUDE_FONT_DEJAVUSANSBOLD12_AA FALSE
114 // #define GDISP_INCLUDE_USER_FONTS FALSE
115 
116 //#define GDISP_NEED_IMAGE FALSE
117 // #define GDISP_NEED_IMAGE_NATIVE FALSE
118 // #define GDISP_NEED_IMAGE_GIF FALSE
119 // #define GDISP_IMAGE_GIF_BLIT_BUFFER_SIZE 32
120 // #define GDISP_NEED_IMAGE_BMP FALSE
121 // #define GDISP_NEED_IMAGE_BMP_1 TRUE
122 // #define GDISP_NEED_IMAGE_BMP_4 TRUE
123 // #define GDISP_NEED_IMAGE_BMP_4_RLE TRUE
124 // #define GDISP_NEED_IMAGE_BMP_8 TRUE
125 // #define GDISP_NEED_IMAGE_BMP_8_RLE TRUE
126 // #define GDISP_NEED_IMAGE_BMP_16 TRUE
127 // #define GDISP_NEED_IMAGE_BMP_24 TRUE
128 // #define GDISP_NEED_IMAGE_BMP_32 TRUE
129 // #define GDISP_IMAGE_BMP_BLIT_BUFFER_SIZE 32
130 // #define GDISP_NEED_IMAGE_JPG FALSE
131 // #define GDISP_NEED_IMAGE_PNG FALSE
132 // #define GDISP_NEED_IMAGE_PNG_INTERLACED FALSE
133 // #define GDISP_NEED_IMAGE_PNG_TRANSPARENCY TRUE
134 // #define GDISP_NEED_IMAGE_PNG_BACKGROUND TRUE
135 // #define GDISP_NEED_IMAGE_PNG_ALPHACLIFF 32
136 // #define GDISP_NEED_IMAGE_PNG_PALETTE_124 TRUE
137 // #define GDISP_NEED_IMAGE_PNG_PALETTE_8 TRUE
138 // #define GDISP_NEED_IMAGE_PNG_GRAYSCALE_124 TRUE
139 // #define GDISP_NEED_IMAGE_PNG_GRAYSCALE_8 TRUE
140 // #define GDISP_NEED_IMAGE_PNG_GRAYSCALE_16 TRUE
141 // #define GDISP_NEED_IMAGE_PNG_GRAYALPHA_8 TRUE
142 // #define GDISP_NEED_IMAGE_PNG_GRAYALPHA_16 TRUE
143 // #define GDISP_NEED_IMAGE_PNG_RGB_8 TRUE
144 // #define GDISP_NEED_IMAGE_PNG_RGB_16 TRUE
145 // #define GDISP_NEED_IMAGE_PNG_RGBALPHA_8 TRUE
146 // #define GDISP_NEED_IMAGE_PNG_RGBALPHA_16 TRUE
147 // #define GDISP_IMAGE_PNG_BLIT_BUFFER_SIZE 32
148 // #define GDISP_IMAGE_PNG_FILE_BUFFER_SIZE 8
149 // #define GDISP_IMAGE_PNG_Z_BUFFER_SIZE 32768
150 // #define GDISP_NEED_IMAGE_ACCOUNTING FALSE
151 
152 //#define GDISP_NEED_PIXMAP FALSE
153 // #define GDISP_NEED_PIXMAP_IMAGE FALSE
154 
155 //#define GDISP_DEFAULT_ORIENTATION GDISP_ROTATE_LANDSCAPE // If not defined the native hardware orientation is used.
156 //#define GDISP_LINEBUF_SIZE 128
157 //#define GDISP_STARTUP_COLOR Black
158 //#define GDISP_NEED_STARTUP_LOGO TRUE
159 
160 //#define GDISP_TOTAL_DISPLAYS 1
161 
162 //#define GDISP_DRIVER_LIST GDISPVMT_Win32, GDISPVMT_Win32
163 // #ifdef GDISP_DRIVER_LIST
164 // // For code and speed optimization define as TRUE or FALSE if all controllers have the same capability
165 // #define GDISP_HARDWARE_STREAM_WRITE FALSE
166 // #define GDISP_HARDWARE_STREAM_READ FALSE
167 // #define GDISP_HARDWARE_STREAM_POS FALSE
168 // #define GDISP_HARDWARE_DRAWPIXEL FALSE
169 // #define GDISP_HARDWARE_CLEARS FALSE
170 // #define GDISP_HARDWARE_FILLS FALSE
171 // #define GDISP_HARDWARE_BITFILLS FALSE
172 // #define GDISP_HARDWARE_SCROLL FALSE
173 // #define GDISP_HARDWARE_PIXELREAD FALSE
174 // #define GDISP_HARDWARE_CONTROL FALSE
175 // #define GDISP_HARDWARE_QUERY FALSE
176 // #define GDISP_HARDWARE_CLIP FALSE
177 
178 // #define GDISP_PIXELFORMAT GDISP_PIXELFORMAT_RGB888
179 // #endif
180 
181 //#define GDISP_USE_GFXNET FALSE
182 // #define GDISP_GFXNET_PORT 13001
183 // #define GDISP_GFXNET_CUSTOM_LWIP_STARTUP FALSE
184 // #define GDISP_DONT_WAIT_FOR_NET_DISPLAY FALSE
185 // #define GDISP_GFXNET_UNSAFE_SOCKETS FALSE
186 
187 
188 ///////////////////////////////////////////////////////////////////////////
189 // GWIN //
190 ///////////////////////////////////////////////////////////////////////////
191 //#define GFX_USE_GWIN FALSE
192 
193 //#define GWIN_NEED_WINDOWMANAGER FALSE
194 // #define GWIN_REDRAW_IMMEDIATE FALSE
195 // #define GWIN_REDRAW_SINGLEOP FALSE
196 // #define GWIN_NEED_FLASHING FALSE
197 // #define GWIN_FLASHING_PERIOD 250
198 
199 //#define GWIN_NEED_CONSOLE FALSE
200 // #define GWIN_CONSOLE_USE_HISTORY FALSE
201 // #define GWIN_CONSOLE_HISTORY_AVERAGING FALSE
202 // #define GWIN_CONSOLE_HISTORY_ATCREATE FALSE
203 // #define GWIN_CONSOLE_ESCSEQ FALSE
204 // #define GWIN_CONSOLE_USE_BASESTREAM FALSE
205 // #define GWIN_CONSOLE_USE_FLOAT FALSE
206 //#define GWIN_NEED_GRAPH FALSE
207 //#define GWIN_NEED_GL3D FALSE
208 
209 //#define GWIN_NEED_WIDGET FALSE
210 //#define GWIN_FOCUS_HIGHLIGHT_WIDTH 1
211 // #define GWIN_NEED_LABEL FALSE
212 // #define GWIN_LABEL_ATTRIBUTE FALSE
213 // #define GWIN_NEED_BUTTON FALSE
214 // #define GWIN_BUTTON_LAZY_RELEASE FALSE
215 // #define GWIN_NEED_SLIDER FALSE
216 // #define GWIN_SLIDER_NOSNAP FALSE
217 // #define GWIN_SLIDER_DEAD_BAND 5
218 // #define GWIN_SLIDER_TOGGLE_INC 20
219 // #define GWIN_NEED_CHECKBOX FALSE
220 // #define GWIN_NEED_IMAGE FALSE
221 // #define GWIN_NEED_IMAGE_ANIMATION FALSE
222 // #define GWIN_NEED_RADIO FALSE
223 // #define GWIN_NEED_LIST FALSE
224 // #define GWIN_NEED_LIST_IMAGES FALSE
225 // #define GWIN_NEED_PROGRESSBAR FALSE
226 // #define GWIN_PROGRESSBAR_AUTO FALSE
227 // #define GWIN_NEED_KEYBOARD FALSE
228 // #define GWIN_KEYBOARD_DEFAULT_LAYOUT VirtualKeyboard_English1
229 // #define GWIN_NEED_KEYBOARD_ENGLISH1 TRUE
230 // #define GWIN_NEED_TEXTEDIT FALSE
231 // #define GWIN_FLAT_STYLING FALSE
232 // #define GWIN_WIDGET_TAGS FALSE
233 
234 //#define GWIN_NEED_CONTAINERS FALSE
235 // #define GWIN_NEED_CONTAINER FALSE
236 // #define GWIN_NEED_FRAME FALSE
237 // #define GWIN_NEED_TABSET FALSE
238 // #define GWIN_TABSET_TABHEIGHT 18
239 
240 
241 ///////////////////////////////////////////////////////////////////////////
242 // GTRANS //
243 ///////////////////////////////////////////////////////////////////////////
244 //#define GFX_USE_GTRANS FALSE
245 
246 
247 ///////////////////////////////////////////////////////////////////////////
248 // GEVENT //
249 ///////////////////////////////////////////////////////////////////////////
250 //#define GFX_USE_GEVENT FALSE
251 
252 //#define GEVENT_ASSERT_NO_RESOURCE FALSE
253 //#define GEVENT_MAXIMUM_SIZE 32
254 //#define GEVENT_MAX_SOURCE_LISTENERS 32
255 
256 
257 ///////////////////////////////////////////////////////////////////////////
258 // GTIMER //
259 ///////////////////////////////////////////////////////////////////////////
260 //#define GFX_USE_GTIMER FALSE
261 
262 //#define GTIMER_THREAD_PRIORITY HIGH_PRIORITY
263 //#define GTIMER_THREAD_WORKAREA_SIZE 2048
264 
265 
266 ///////////////////////////////////////////////////////////////////////////
267 // GQUEUE //
268 ///////////////////////////////////////////////////////////////////////////
269 //#define GFX_USE_GQUEUE FALSE
270 
271 //#define GQUEUE_NEED_ASYNC FALSE
272 //#define GQUEUE_NEED_GSYNC FALSE
273 //#define GQUEUE_NEED_FSYNC FALSE
274 //#define GQUEUE_NEED_BUFFERS FALSE
275 
276 ///////////////////////////////////////////////////////////////////////////
277 // GINPUT //
278 ///////////////////////////////////////////////////////////////////////////
279 //#define GFX_USE_GINPUT FALSE
280 
281 //#define GINPUT_NEED_MOUSE FALSE
282 // #define GINPUT_TOUCH_STARTRAW FALSE
283 // #define GINPUT_TOUCH_NOTOUCH FALSE
284 // #define GINPUT_TOUCH_NOCALIBRATE FALSE
285 // #define GINPUT_TOUCH_NOCALIBRATE_GUI FALSE
286 // #define GINPUT_MOUSE_POLL_PERIOD 25
287 // #define GINPUT_MOUSE_CLICK_TIME 300
288 // #define GINPUT_TOUCH_CXTCLICK_TIME 700
289 // #define GINPUT_TOUCH_USER_CALIBRATION_LOAD FALSE
290 // #define GINPUT_TOUCH_USER_CALIBRATION_SAVE FALSE
291 // #define GMOUSE_DRIVER_LIST GMOUSEVMT_Win32, GMOUSEVMT_Win32
292 //#define GINPUT_NEED_KEYBOARD FALSE
293 // #define GINPUT_KEYBOARD_POLL_PERIOD 200
294 // #define GKEYBOARD_DRIVER_LIST GKEYBOARDVMT_Win32, GKEYBOARDVMT_Win32
295 // #define GKEYBOARD_LAYOUT_OFF FALSE
296 // #define GKEYBOARD_LAYOUT_SCANCODE2_US FALSE
297 //#define GINPUT_NEED_TOGGLE FALSE
298 //#define GINPUT_NEED_DIAL FALSE
299 
300 
301 ///////////////////////////////////////////////////////////////////////////
302 // GFILE //
303 ///////////////////////////////////////////////////////////////////////////
304 //#define GFX_USE_GFILE FALSE
305 
306 //#define GFILE_NEED_PRINTG FALSE
307 //#define GFILE_NEED_SCANG FALSE
308 //#define GFILE_NEED_STRINGS FALSE
309 //#define GFILE_NEED_FILELISTS FALSE
310 //#define GFILE_NEED_STDIO FALSE
311 //#define GFILE_NEED_NOAUTOMOUNT FALSE
312 //#define GFILE_NEED_NOAUTOSYNC FALSE
313 
314 //#define GFILE_NEED_MEMFS FALSE
315 //#define GFILE_NEED_ROMFS FALSE
316 //#define GFILE_NEED_RAMFS FALSE
317 //#define GFILE_NEED_FATFS FALSE
318 //#define GFILE_NEED_NATIVEFS FALSE
319 //#define GFILE_NEED_CHBIOSFS FALSE
320 //#define GFILE_NEED_USERFS FALSE
321 
322 //#define GFILE_ALLOW_FLOATS FALSE
323 //#define GFILE_ALLOW_DEVICESPECIFIC FALSE
324 //#define GFILE_MAX_GFILES 3
325 
326 ///////////////////////////////////////////////////////////////////////////
327 // GADC //
328 ///////////////////////////////////////////////////////////////////////////
329 //#define GFX_USE_GADC FALSE
330 // #define GADC_MAX_LOWSPEED_DEVICES 4
331 
332 ///////////////////////////////////////////////////////////////////////////
333 // GAUDIO //
334 ///////////////////////////////////////////////////////////////////////////
335 //#define GFX_USE_GAUDIO FALSE
336 // #define GAUDIO_NEED_PLAY FALSE
337 // #define GAUDIO_NEED_RECORD FALSE
338 
339 ///////////////////////////////////////////////////////////////////////////
340 // GMISC //
341 ///////////////////////////////////////////////////////////////////////////
342 //#define GFX_USE_GMISC FALSE
343 
344 //#define GMISC_NEED_ARRAYOPS FALSE
345 //#define GMISC_NEED_FASTTRIG FALSE
346 //#define GMISC_NEED_FIXEDTRIG FALSE
347 //#define GMISC_NEED_INVSQRT FALSE
348 // #define GMISC_INVSQRT_MIXED_ENDIAN FALSE
349 // #define GMISC_INVSQRT_REAL_SLOW FALSE
350 //#define GMISC_NEED_MATRIXFLOAT2D FALSE
351 //#define GMISC_NEED_MATRIXFIXED2D FALSE
352 //#define GMISC_NEED_HITTEST_POLY FALSE
353 
354 #endif /* _GFXCONF_H */