diff options
| author | skullY <skullydazed@gmail.com> | 2019-08-30 11:19:03 -0700 |
|---|---|---|
| committer | skullydazed <skullydazed@users.noreply.github.com> | 2019-08-30 15:01:52 -0700 |
| commit | b624f32f944acdc59dcb130674c09090c5c404cb (patch) | |
| tree | bc13adbba137d122d9a2c2fb2fafcbb08ac10e25 /quantum/visualizer/common_gfxconf.h | |
| parent | 61af76a10d00aba185b8338604171de490a13e3b (diff) | |
| download | qmk_firmware-b624f32f944acdc59dcb130674c09090c5c404cb.tar.gz qmk_firmware-b624f32f944acdc59dcb130674c09090c5c404cb.zip | |
clang-format changes
Diffstat (limited to 'quantum/visualizer/common_gfxconf.h')
| -rw-r--r-- | quantum/visualizer/common_gfxconf.h | 103 |
1 files changed, 47 insertions, 56 deletions
diff --git a/quantum/visualizer/common_gfxconf.h b/quantum/visualizer/common_gfxconf.h index eb705b188..865e58869 100644 --- a/quantum/visualizer/common_gfxconf.h +++ b/quantum/visualizer/common_gfxconf.h | |||
| @@ -22,7 +22,6 @@ | |||
| 22 | #ifndef COMMON_GFXCONF_H | 22 | #ifndef COMMON_GFXCONF_H |
| 23 | #define COMMON_GFXCONF_H | 23 | #define COMMON_GFXCONF_H |
| 24 | 24 | ||
| 25 | |||
| 26 | /////////////////////////////////////////////////////////////////////////// | 25 | /////////////////////////////////////////////////////////////////////////// |
| 27 | // GOS - One of these must be defined, preferably in your Makefile // | 26 | // GOS - One of these must be defined, preferably in your Makefile // |
| 28 | /////////////////////////////////////////////////////////////////////////// | 27 | /////////////////////////////////////////////////////////////////////////// |
| @@ -41,11 +40,11 @@ | |||
| 41 | // #define INTERRUPTS_OFF() optional_code | 40 | // #define INTERRUPTS_OFF() optional_code |
| 42 | // #define INTERRUPTS_ON() optional_code | 41 | // #define INTERRUPTS_ON() optional_code |
| 43 | // These are not defined by default for some reason | 42 | // These are not defined by default for some reason |
| 44 | #define GOS_NEED_X_THREADS FALSE | 43 | #define GOS_NEED_X_THREADS FALSE |
| 45 | #define GOS_NEED_X_HEAP FALSE | 44 | #define GOS_NEED_X_HEAP FALSE |
| 46 | 45 | ||
| 47 | // Options that (should where relevant) apply to all operating systems | 46 | // Options that (should where relevant) apply to all operating systems |
| 48 | #define GFX_NO_INLINE FALSE | 47 | #define GFX_NO_INLINE FALSE |
| 49 | // #define GFX_COMPILER GFX_COMPILER_UNKNOWN | 48 | // #define GFX_COMPILER GFX_COMPILER_UNKNOWN |
| 50 | // #define GFX_CPU GFX_CPU_UNKNOWN | 49 | // #define GFX_CPU GFX_CPU_UNKNOWN |
| 51 | // #define GFX_OS_HEAP_SIZE 0 | 50 | // #define GFX_OS_HEAP_SIZE 0 |
| @@ -55,32 +54,31 @@ | |||
| 55 | // #define GFX_OS_EXTRA_INIT_FUNCTION myOSInitRoutine | 54 | // #define GFX_OS_EXTRA_INIT_FUNCTION myOSInitRoutine |
| 56 | // #define GFX_OS_EXTRA_DEINIT_FUNCTION myOSDeInitRoutine | 55 | // #define GFX_OS_EXTRA_DEINIT_FUNCTION myOSDeInitRoutine |
| 57 | 56 | ||
| 58 | |||
| 59 | /////////////////////////////////////////////////////////////////////////// | 57 | /////////////////////////////////////////////////////////////////////////// |
| 60 | // GDISP // | 58 | // GDISP // |
| 61 | /////////////////////////////////////////////////////////////////////////// | 59 | /////////////////////////////////////////////////////////////////////////// |
| 62 | #define GFX_USE_GDISP TRUE | 60 | #define GFX_USE_GDISP TRUE |
| 63 | 61 | ||
| 64 | //#define GDISP_NEED_AUTOFLUSH FALSE | 62 | //#define GDISP_NEED_AUTOFLUSH FALSE |
| 65 | //#define GDISP_NEED_TIMERFLUSH FALSE | 63 | //#define GDISP_NEED_TIMERFLUSH FALSE |
| 66 | //#define GDISP_NEED_VALIDATION TRUE | 64 | //#define GDISP_NEED_VALIDATION TRUE |
| 67 | //#define GDISP_NEED_CLIP TRUE | 65 | //#define GDISP_NEED_CLIP TRUE |
| 68 | #define GDISP_NEED_CIRCLE TRUE | 66 | #define GDISP_NEED_CIRCLE TRUE |
| 69 | #define GDISP_NEED_ELLIPSE TRUE | 67 | #define GDISP_NEED_ELLIPSE TRUE |
| 70 | #define GDISP_NEED_ARC TRUE | 68 | #define GDISP_NEED_ARC TRUE |
| 71 | #define GDISP_NEED_ARCSECTORS TRUE | 69 | #define GDISP_NEED_ARCSECTORS TRUE |
| 72 | #define GDISP_NEED_CONVEX_POLYGON TRUE | 70 | #define GDISP_NEED_CONVEX_POLYGON TRUE |
| 73 | //#define GDISP_NEED_SCROLL FALSE | 71 | //#define GDISP_NEED_SCROLL FALSE |
| 74 | #define GDISP_NEED_PIXELREAD TRUE | 72 | #define GDISP_NEED_PIXELREAD TRUE |
| 75 | #define GDISP_NEED_CONTROL TRUE | 73 | #define GDISP_NEED_CONTROL TRUE |
| 76 | //#define GDISP_NEED_QUERY FALSE | 74 | //#define GDISP_NEED_QUERY FALSE |
| 77 | //#define GDISP_NEED_MULTITHREAD FALSE | 75 | //#define GDISP_NEED_MULTITHREAD FALSE |
| 78 | //#define GDISP_NEED_STREAMING FALSE | 76 | //#define GDISP_NEED_STREAMING FALSE |
| 79 | #define GDISP_NEED_TEXT TRUE | 77 | #define GDISP_NEED_TEXT TRUE |
| 80 | // #define GDISP_NEED_TEXT_WORDWRAP FALSE | 78 | // #define GDISP_NEED_TEXT_WORDWRAP FALSE |
| 81 | // #define GDISP_NEED_ANTIALIAS FALSE | 79 | // #define GDISP_NEED_ANTIALIAS FALSE |
| 82 | // #define GDISP_NEED_UTF8 FALSE | 80 | // #define GDISP_NEED_UTF8 FALSE |
| 83 | #define GDISP_NEED_TEXT_KERNING TRUE | 81 | #define GDISP_NEED_TEXT_KERNING TRUE |
| 84 | // #define GDISP_INCLUDE_FONT_UI1 FALSE | 82 | // #define GDISP_INCLUDE_FONT_UI1 FALSE |
| 85 | // #define GDISP_INCLUDE_FONT_UI2 FALSE // The smallest preferred font. | 83 | // #define GDISP_INCLUDE_FONT_UI2 FALSE // The smallest preferred font. |
| 86 | // #define GDISP_INCLUDE_FONT_LARGENUMBERS FALSE | 84 | // #define GDISP_INCLUDE_FONT_LARGENUMBERS FALSE |
| @@ -90,10 +88,10 @@ | |||
| 90 | // #define GDISP_INCLUDE_FONT_DEJAVUSANS20 FALSE | 88 | // #define GDISP_INCLUDE_FONT_DEJAVUSANS20 FALSE |
| 91 | // #define GDISP_INCLUDE_FONT_DEJAVUSANS24 FALSE | 89 | // #define GDISP_INCLUDE_FONT_DEJAVUSANS24 FALSE |
| 92 | // #define GDISP_INCLUDE_FONT_DEJAVUSANS32 FALSE | 90 | // #define GDISP_INCLUDE_FONT_DEJAVUSANS32 FALSE |
| 93 | #define GDISP_INCLUDE_FONT_DEJAVUSANSBOLD12 TRUE | 91 | #define GDISP_INCLUDE_FONT_DEJAVUSANSBOLD12 TRUE |
| 94 | // #define GDISP_INCLUDE_FONT_FIXED_10X20 FALSE | 92 | // #define GDISP_INCLUDE_FONT_FIXED_10X20 FALSE |
| 95 | // #define GDISP_INCLUDE_FONT_FIXED_7X14 FALSE | 93 | // #define GDISP_INCLUDE_FONT_FIXED_7X14 FALSE |
| 96 | #define GDISP_INCLUDE_FONT_FIXED_5X8 TRUE | 94 | #define GDISP_INCLUDE_FONT_FIXED_5X8 TRUE |
| 97 | // #define GDISP_INCLUDE_FONT_DEJAVUSANS12_AA FALSE | 95 | // #define GDISP_INCLUDE_FONT_DEJAVUSANS12_AA FALSE |
| 98 | // #define GDISP_INCLUDE_FONT_DEJAVUSANS16_AA FALSE | 96 | // #define GDISP_INCLUDE_FONT_DEJAVUSANS16_AA FALSE |
| 99 | // #define GDISP_INCLUDE_FONT_DEJAVUSANS20_AA FALSE | 97 | // #define GDISP_INCLUDE_FONT_DEJAVUSANS20_AA FALSE |
| @@ -118,50 +116,49 @@ | |||
| 118 | // #define GDISP_NEED_IMAGE_PNG FALSE | 116 | // #define GDISP_NEED_IMAGE_PNG FALSE |
| 119 | // #define GDISP_NEED_IMAGE_ACCOUNTING FALSE | 117 | // #define GDISP_NEED_IMAGE_ACCOUNTING FALSE |
| 120 | #ifdef EMULATOR | 118 | #ifdef EMULATOR |
| 121 | #define GDISP_NEED_PIXMAP TRUE | 119 | # define GDISP_NEED_PIXMAP TRUE |
| 122 | #endif | 120 | #endif |
| 123 | // #define GDISP_NEED_PIXMAP_IMAGE FALSE | 121 | // #define GDISP_NEED_PIXMAP_IMAGE FALSE |
| 124 | 122 | ||
| 125 | //#define GDISP_DEFAULT_ORIENTATION GDISP_ROTATE_LANDSCAPE // If not defined the native hardware orientation is used. | 123 | //#define GDISP_DEFAULT_ORIENTATION GDISP_ROTATE_LANDSCAPE // If not defined the native hardware orientation is used. |
| 126 | //#define GDISP_LINEBUF_SIZE 128 | 124 | //#define GDISP_LINEBUF_SIZE 128 |
| 127 | //#define GDISP_STARTUP_COLOR Black | 125 | //#define GDISP_STARTUP_COLOR Black |
| 128 | #define GDISP_NEED_STARTUP_LOGO FALSE | 126 | #define GDISP_NEED_STARTUP_LOGO FALSE |
| 129 | 127 | ||
| 130 | //#define GDISP_TOTAL_DISPLAYS 2 | 128 | //#define GDISP_TOTAL_DISPLAYS 2 |
| 131 | 129 | ||
| 132 | #ifdef GDISP_DRIVER_LIST | 130 | #ifdef GDISP_DRIVER_LIST |
| 133 | // For code and speed optimization define as TRUE or FALSE if all controllers have the same capability | 131 | // For code and speed optimization define as TRUE or FALSE if all controllers have the same capability |
| 134 | #define GDISP_HARDWARE_STREAM_WRITE FALSE | 132 | # define GDISP_HARDWARE_STREAM_WRITE FALSE |
| 135 | #define GDISP_HARDWARE_STREAM_READ FALSE | 133 | # define GDISP_HARDWARE_STREAM_READ FALSE |
| 136 | #define GDISP_HARDWARE_STREAM_POS FALSE | 134 | # define GDISP_HARDWARE_STREAM_POS FALSE |
| 137 | #define GDISP_HARDWARE_DRAWPIXEL TRUE | 135 | # define GDISP_HARDWARE_DRAWPIXEL TRUE |
| 138 | #define GDISP_HARDWARE_CLEARS FALSE | 136 | # define GDISP_HARDWARE_CLEARS FALSE |
| 139 | #define GDISP_HARDWARE_FILLS FALSE | 137 | # define GDISP_HARDWARE_FILLS FALSE |
| 140 | //#define GDISP_HARDWARE_BITFILLS FALSE | 138 | //#define GDISP_HARDWARE_BITFILLS FALSE |
| 141 | #define GDISP_HARDWARE_SCROLL FALSE | 139 | # define GDISP_HARDWARE_SCROLL FALSE |
| 142 | #define GDISP_HARDWARE_PIXELREAD TRUE | 140 | # define GDISP_HARDWARE_PIXELREAD TRUE |
| 143 | #define GDISP_HARDWARE_CONTROL TRUE | 141 | # define GDISP_HARDWARE_CONTROL TRUE |
| 144 | #define GDISP_HARDWARE_QUERY FALSE | 142 | # define GDISP_HARDWARE_QUERY FALSE |
| 145 | #define GDISP_HARDWARE_CLIP FALSE | 143 | # define GDISP_HARDWARE_CLIP FALSE |
| 146 | 144 | ||
| 147 | #define GDISP_PIXELFORMAT GDISP_PIXELFORMAT_RGB888 | 145 | # define GDISP_PIXELFORMAT GDISP_PIXELFORMAT_RGB888 |
| 148 | #endif | 146 | #endif |
| 149 | 147 | ||
| 150 | // The custom format is not defined for some reason, so define it as error | 148 | // The custom format is not defined for some reason, so define it as error |
| 151 | // so we don't get compiler warnings | 149 | // so we don't get compiler warnings |
| 152 | #define GDISP_PIXELFORMAT_CUSTOM GDISP_PIXELFORMAT_ERROR | 150 | #define GDISP_PIXELFORMAT_CUSTOM GDISP_PIXELFORMAT_ERROR |
| 153 | 151 | ||
| 154 | #define GDISP_USE_GFXNET FALSE | 152 | #define GDISP_USE_GFXNET FALSE |
| 155 | // #define GDISP_GFXNET_PORT 13001 | 153 | // #define GDISP_GFXNET_PORT 13001 |
| 156 | // #define GDISP_GFXNET_CUSTOM_LWIP_STARTUP FALSE | 154 | // #define GDISP_GFXNET_CUSTOM_LWIP_STARTUP FALSE |
| 157 | // #define GDISP_DONT_WAIT_FOR_NET_DISPLAY FALSE | 155 | // #define GDISP_DONT_WAIT_FOR_NET_DISPLAY FALSE |
| 158 | // #define GDISP_GFXNET_UNSAFE_SOCKETS FALSE | 156 | // #define GDISP_GFXNET_UNSAFE_SOCKETS FALSE |
| 159 | 157 | ||
| 160 | |||
| 161 | /////////////////////////////////////////////////////////////////////////// | 158 | /////////////////////////////////////////////////////////////////////////// |
| 162 | // GWIN // | 159 | // GWIN // |
| 163 | /////////////////////////////////////////////////////////////////////////// | 160 | /////////////////////////////////////////////////////////////////////////// |
| 164 | #define GFX_USE_GWIN FALSE | 161 | #define GFX_USE_GWIN FALSE |
| 165 | 162 | ||
| 166 | //#define GWIN_NEED_WINDOWMANAGER FALSE | 163 | //#define GWIN_NEED_WINDOWMANAGER FALSE |
| 167 | // #define GWIN_REDRAW_IMMEDIATE FALSE | 164 | // #define GWIN_REDRAW_IMMEDIATE FALSE |
| @@ -210,30 +207,27 @@ | |||
| 210 | // #define GWIN_NEED_TABSET FALSE | 207 | // #define GWIN_NEED_TABSET FALSE |
| 211 | // #define GWIN_TABSET_TABHEIGHT 18 | 208 | // #define GWIN_TABSET_TABHEIGHT 18 |
| 212 | 209 | ||
| 213 | |||
| 214 | /////////////////////////////////////////////////////////////////////////// | 210 | /////////////////////////////////////////////////////////////////////////// |
| 215 | // GEVENT // | 211 | // GEVENT // |
| 216 | /////////////////////////////////////////////////////////////////////////// | 212 | /////////////////////////////////////////////////////////////////////////// |
| 217 | #define GFX_USE_GEVENT TRUE | 213 | #define GFX_USE_GEVENT TRUE |
| 218 | 214 | ||
| 219 | //#define GEVENT_ASSERT_NO_RESOURCE FALSE | 215 | //#define GEVENT_ASSERT_NO_RESOURCE FALSE |
| 220 | //#define GEVENT_MAXIMUM_SIZE 32 | 216 | //#define GEVENT_MAXIMUM_SIZE 32 |
| 221 | //#define GEVENT_MAX_SOURCE_LISTENERS 32 | 217 | //#define GEVENT_MAX_SOURCE_LISTENERS 32 |
| 222 | 218 | ||
| 223 | |||
| 224 | /////////////////////////////////////////////////////////////////////////// | 219 | /////////////////////////////////////////////////////////////////////////// |
| 225 | // GTIMER // | 220 | // GTIMER // |
| 226 | /////////////////////////////////////////////////////////////////////////// | 221 | /////////////////////////////////////////////////////////////////////////// |
| 227 | #define GFX_USE_GTIMER FALSE | 222 | #define GFX_USE_GTIMER FALSE |
| 228 | 223 | ||
| 229 | //#define GTIMER_THREAD_PRIORITY HIGH_PRIORITY | 224 | //#define GTIMER_THREAD_PRIORITY HIGH_PRIORITY |
| 230 | //#define GTIMER_THREAD_WORKAREA_SIZE 2048 | 225 | //#define GTIMER_THREAD_WORKAREA_SIZE 2048 |
| 231 | 226 | ||
| 232 | |||
| 233 | /////////////////////////////////////////////////////////////////////////// | 227 | /////////////////////////////////////////////////////////////////////////// |
| 234 | // GQUEUE // | 228 | // GQUEUE // |
| 235 | /////////////////////////////////////////////////////////////////////////// | 229 | /////////////////////////////////////////////////////////////////////////// |
| 236 | #define GFX_USE_GQUEUE FALSE | 230 | #define GFX_USE_GQUEUE FALSE |
| 237 | 231 | ||
| 238 | //#define GQUEUE_NEED_ASYNC FALSE | 232 | //#define GQUEUE_NEED_ASYNC FALSE |
| 239 | //#define GQUEUE_NEED_GSYNC FALSE | 233 | //#define GQUEUE_NEED_GSYNC FALSE |
| @@ -243,7 +237,7 @@ | |||
| 243 | /////////////////////////////////////////////////////////////////////////// | 237 | /////////////////////////////////////////////////////////////////////////// |
| 244 | // GINPUT // | 238 | // GINPUT // |
| 245 | /////////////////////////////////////////////////////////////////////////// | 239 | /////////////////////////////////////////////////////////////////////////// |
| 246 | #define GFX_USE_GINPUT FALSE | 240 | #define GFX_USE_GINPUT FALSE |
| 247 | 241 | ||
| 248 | //#define GINPUT_NEED_MOUSE FALSE | 242 | //#define GINPUT_NEED_MOUSE FALSE |
| 249 | // #define GINPUT_TOUCH_STARTRAW FALSE | 243 | // #define GINPUT_TOUCH_STARTRAW FALSE |
| @@ -264,11 +258,10 @@ | |||
| 264 | //#define GINPUT_NEED_TOGGLE FALSE | 258 | //#define GINPUT_NEED_TOGGLE FALSE |
| 265 | //#define GINPUT_NEED_DIAL FALSE | 259 | //#define GINPUT_NEED_DIAL FALSE |
| 266 | 260 | ||
| 267 | |||
| 268 | /////////////////////////////////////////////////////////////////////////// | 261 | /////////////////////////////////////////////////////////////////////////// |
| 269 | // GFILE // | 262 | // GFILE // |
| 270 | /////////////////////////////////////////////////////////////////////////// | 263 | /////////////////////////////////////////////////////////////////////////// |
| 271 | #define GFX_USE_GFILE FALSE | 264 | #define GFX_USE_GFILE FALSE |
| 272 | 265 | ||
| 273 | //#define GFILE_NEED_PRINTG FALSE | 266 | //#define GFILE_NEED_PRINTG FALSE |
| 274 | //#define GFILE_NEED_SCANG FALSE | 267 | //#define GFILE_NEED_SCANG FALSE |
| @@ -292,26 +285,24 @@ | |||
| 292 | /////////////////////////////////////////////////////////////////////////// | 285 | /////////////////////////////////////////////////////////////////////////// |
| 293 | // GADC // | 286 | // GADC // |
| 294 | /////////////////////////////////////////////////////////////////////////// | 287 | /////////////////////////////////////////////////////////////////////////// |
| 295 | #define GFX_USE_GADC FALSE | 288 | #define GFX_USE_GADC FALSE |
| 296 | 289 | ||
| 297 | //#define GADC_MAX_LOWSPEED_DEVICES 4 | 290 | //#define GADC_MAX_LOWSPEED_DEVICES 4 |
| 298 | 291 | ||
| 299 | |||
| 300 | /////////////////////////////////////////////////////////////////////////// | 292 | /////////////////////////////////////////////////////////////////////////// |
| 301 | // GAUDIO // | 293 | // GAUDIO // |
| 302 | /////////////////////////////////////////////////////////////////////////// | 294 | /////////////////////////////////////////////////////////////////////////// |
| 303 | #define GFX_USE_GAUDIO FALSE | 295 | #define GFX_USE_GAUDIO FALSE |
| 304 | // There seems to be a bug in the ugfx code, the wrong define is used | 296 | // There seems to be a bug in the ugfx code, the wrong define is used |
| 305 | // So define it in order to avoid warnings | 297 | // So define it in order to avoid warnings |
| 306 | #define GFX_USE_GAUDIN GFX_USE_GAUDIO | 298 | #define GFX_USE_GAUDIN GFX_USE_GAUDIO |
| 307 | // #define GAUDIO_NEED_PLAY FALSE | 299 | // #define GAUDIO_NEED_PLAY FALSE |
| 308 | // #define GAUDIO_NEED_RECORD FALSE | 300 | // #define GAUDIO_NEED_RECORD FALSE |
| 309 | 301 | ||
| 310 | |||
| 311 | /////////////////////////////////////////////////////////////////////////// | 302 | /////////////////////////////////////////////////////////////////////////// |
| 312 | // GMISC // | 303 | // GMISC // |
| 313 | /////////////////////////////////////////////////////////////////////////// | 304 | /////////////////////////////////////////////////////////////////////////// |
| 314 | #define GFX_USE_GMISC TRUE | 305 | #define GFX_USE_GMISC TRUE |
| 315 | 306 | ||
| 316 | //#define GMISC_NEED_ARRAYOPS FALSE | 307 | //#define GMISC_NEED_ARRAYOPS FALSE |
| 317 | //#define GMISC_NEED_FASTTRIG FALSE | 308 | //#define GMISC_NEED_FASTTRIG FALSE |
| @@ -319,7 +310,7 @@ | |||
| 319 | //#define GMISC_NEED_INVSQRT FALSE | 310 | //#define GMISC_NEED_INVSQRT FALSE |
| 320 | // #define GMISC_INVSQRT_MIXED_ENDIAN FALSE | 311 | // #define GMISC_INVSQRT_MIXED_ENDIAN FALSE |
| 321 | // #define GMISC_INVSQRT_REAL_SLOW FALSE | 312 | // #define GMISC_INVSQRT_REAL_SLOW FALSE |
| 322 | #define GMISC_NEED_MATRIXFLOAT2D TRUE | 313 | #define GMISC_NEED_MATRIXFLOAT2D TRUE |
| 323 | #define GMISC_NEED_MATRIXFIXED2D FALSE | 314 | #define GMISC_NEED_MATRIXFIXED2D FALSE |
| 324 | 315 | ||
| 325 | #endif /* COMMON_GFXCONF_H */ | 316 | #endif /* COMMON_GFXCONF_H */ |
