The official µGFX library repository.

gfxconf.example.h 18KB

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