The official µGFX library repository.

gfxconf.example.h 20KB

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