The official µGFX library repository.

gfxconf.example.h 19KB

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