LittlevGL  3.20.00.19
lv_conf_checker.h
Go to the documentation of this file.
1 
7 #ifndef LV_CONF_CHECKER_H
8 #define LV_CONF_CHECKER_H
9 /* clang-format off */
10 
11 #include <stdint.h>
12 
13 /*====================
14  Graphical settings
15  *====================*/
16 
17 /* Maximal horizontal and vertical resolution to support by the library.*/
18 #ifndef LV_HOR_RES_MAX
19 #define LV_HOR_RES_MAX (480)
20 #endif
21 #ifndef LV_VER_RES_MAX
22 #define LV_VER_RES_MAX (320)
23 #endif
24 
25 /* Color depth:
26  * - 1: 1 byte per pixel
27  * - 8: RGB233
28  * - 16: RGB565
29  * - 32: ARGB8888
30  */
31 #ifndef LV_COLOR_DEPTH
32 #define LV_COLOR_DEPTH 16
33 #endif
34 
35 /* Swap the 2 bytes of RGB565 color.
36  * Useful if the display has a 8 bit interface (e.g. SPI)*/
37 #ifndef LV_COLOR_16_SWAP
38 #define LV_COLOR_16_SWAP 0
39 #endif
40 
41 /* 1: Enable screen transparency.
42  * Useful for OSD or other overlapping GUIs.
43  * Requires `LV_COLOR_DEPTH = 32` colors and the screen's style should be modified: `style.body.opa = ...`*/
44 #ifndef LV_COLOR_SCREEN_TRANSP
45 #define LV_COLOR_SCREEN_TRANSP 0
46 #endif
47 
48 /*Images pixels with this color will not be drawn (with chroma keying)*/
49 #ifndef LV_COLOR_TRANSP
50 #define LV_COLOR_TRANSP LV_COLOR_LIME /*LV_COLOR_LIME: pure green*/
51 #endif
52 
53 /* Enable anti-aliasing (lines, and radiuses will be smoothed) */
54 #ifndef LV_ANTIALIAS
55 #define LV_ANTIALIAS 1
56 #endif
57 
58 /* Default display refresh period.
59  * Can be changed in the display driver (`lv_disp_drv_t`).*/
60 #ifndef LV_DISP_DEF_REFR_PERIOD
61 #define LV_DISP_DEF_REFR_PERIOD 30 /*[ms]*/
62 #endif
63 
64 /* Dot Per Inch: used to initialize default sizes.
65  * E.g. a button with width = LV_DPI / 2 -> half inch wide
66  * (Not so important, you can adjust it to modify default sizes and spaces)*/
67 #ifndef LV_DPI
68 #define LV_DPI 100 /*[px]*/
69 #endif
70 
71 /* Type of coordinates. Should be `int16_t` (or `int32_t` for extreme cases) */
72 
73 /*=========================
74  Memory manager settings
75  *=========================*/
76 
77 /* LittelvGL's internal memory manager's settings.
78  * The graphical objects and other related data are stored here. */
79 
80 /* 1: use custom malloc/free, 0: use the built-in `lv_mem_alloc` and `lv_mem_free` */
81 #ifndef LV_MEM_CUSTOM
82 #define LV_MEM_CUSTOM 0
83 #endif
84 #if LV_MEM_CUSTOM == 0
85 /* Size of the memory used by `lv_mem_alloc` in bytes (>= 2kB)*/
86 #ifndef LV_MEM_SIZE
87 # define LV_MEM_SIZE (32U * 1024U)
88 #endif
89 
90 /* Complier prefix for a big array declaration */
91 #ifndef LV_MEM_ATTR
92 # define LV_MEM_ATTR
93 #endif
94 
95 /* Set an address for the memory pool instead of allocating it as an array.
96  * Can be in external SRAM too. */
97 #ifndef LV_MEM_ADR
98 # define LV_MEM_ADR 0
99 #endif
100 
101 /* Automatically defrag. on free. Defrag. means joining the adjacent free cells. */
102 #ifndef LV_MEM_AUTO_DEFRAG
103 # define LV_MEM_AUTO_DEFRAG 1
104 #endif
105 #else /*LV_MEM_CUSTOM*/
106 #ifndef LV_MEM_CUSTOM_INCLUDE
107 # define LV_MEM_CUSTOM_INCLUDE <stdlib.h> /*Header for the dynamic memory function*/
108 #endif
109 #ifndef LV_MEM_CUSTOM_ALLOC
110 # define LV_MEM_CUSTOM_ALLOC malloc /*Wrapper to malloc*/
111 #endif
112 #ifndef LV_MEM_CUSTOM_FREE
113 # define LV_MEM_CUSTOM_FREE free /*Wrapper to free*/
114 #endif
115 #endif /*LV_MEM_CUSTOM*/
116 
117 /* Garbage Collector settings
118  * Used if lvgl is binded to higher level language and the memory is managed by that language */
119 #ifndef LV_ENABLE_GC
120 #define LV_ENABLE_GC 0
121 #endif
122 #if LV_ENABLE_GC != 0
123 #ifndef LV_GC_INCLUDE
124 # define LV_GC_INCLUDE "gc.h" /*Include Garbage Collector related things*/
125 #endif
126 #ifndef LV_MEM_CUSTOM_REALLOC
127 # define LV_MEM_CUSTOM_REALLOC your_realloc /*Wrapper to realloc*/
128 #endif
129 #ifndef LV_MEM_CUSTOM_GET_SIZE
130 # define LV_MEM_CUSTOM_GET_SIZE your_mem_get_size /*Wrapper to lv_mem_get_size*/
131 #endif
132 #endif /* LV_ENABLE_GC */
133 
134 /*=======================
135  Input device settings
136  *=======================*/
137 
138 /* Input device default settings.
139  * Can be changed in the Input device driver (`lv_indev_drv_t`)*/
140 
141 /* Input device read period in milliseconds */
142 #ifndef LV_INDEV_DEF_READ_PERIOD
143 #define LV_INDEV_DEF_READ_PERIOD 30
144 #endif
145 
146 /* Drag threshold in pixels */
147 #ifndef LV_INDEV_DEF_DRAG_LIMIT
148 #define LV_INDEV_DEF_DRAG_LIMIT 10
149 #endif
150 
151 /* Drag throw slow-down in [%]. Greater value -> faster slow-down */
152 #ifndef LV_INDEV_DEF_DRAG_THROW
153 #define LV_INDEV_DEF_DRAG_THROW 20
154 #endif
155 
156 /* Long press time in milliseconds.
157  * Time to send `LV_EVENT_LONG_PRESSSED`) */
158 #ifndef LV_INDEV_DEF_LONG_PRESS_TIME
159 #define LV_INDEV_DEF_LONG_PRESS_TIME 400
160 #endif
161 
162 /* Repeated trigger period in long press [ms]
163  * Time between `LV_EVENT_LONG_PRESSED_REPEAT */
164 #ifndef LV_INDEV_DEF_LONG_PRESS_REP_TIME
165 #define LV_INDEV_DEF_LONG_PRESS_REP_TIME 100
166 #endif
167 
168 /*==================
169  * Feature usage
170  *==================*/
171 
172 /*1: Enable the Animations */
173 #ifndef LV_USE_ANIMATION
174 #define LV_USE_ANIMATION 1
175 #endif
176 #if LV_USE_ANIMATION
177 
178 /*Declare the type of the user data of animations (can be e.g. `void *`, `int`, `struct`)*/
179 
180 #endif
181 
182 /* 1: Enable shadow drawing*/
183 #ifndef LV_USE_SHADOW
184 #define LV_USE_SHADOW 1
185 #endif
186 
187 /* 1: Enable object groups (for keyboard/encoder navigation) */
188 #ifndef LV_USE_GROUP
189 #define LV_USE_GROUP 1
190 #endif
191 #if LV_USE_GROUP
192 #endif /*LV_USE_GROUP*/
193 
194 /* 1: Enable GPU interface*/
195 #ifndef LV_USE_GPU
196 #define LV_USE_GPU 1
197 #endif
198 
199 /* 1: Enable file system (might be required for images */
200 #ifndef LV_USE_FILESYSTEM
201 #define LV_USE_FILESYSTEM 1
202 #endif
203 #if LV_USE_FILESYSTEM
204 /*Declare the type of the user data of file system drivers (can be e.g. `void *`, `int`, `struct`)*/
205 #endif
206 
207 /*1: Add a `user_data` to drivers and objects*/
208 #ifndef LV_USE_USER_DATA
209 #define LV_USE_USER_DATA 0
210 #endif
211 
212 /*========================
213  * Image decoder and cache
214  *========================*/
215 
216 /* 1: Enable indexed (palette) images */
217 #ifndef LV_IMG_CF_INDEXED
218 #define LV_IMG_CF_INDEXED 1
219 #endif
220 
221 /* 1: Enable alpha indexed images */
222 #ifndef LV_IMG_CF_ALPHA
223 #define LV_IMG_CF_ALPHA 1
224 #endif
225 
226 /* Default image cache size. Image caching keeps the images opened.
227  * If only the built-in image formats are used there is no real advantage of caching.
228  * (I.e. no new image decoder is added)
229  * With complex image decoders (e.g. PNG or JPG) caching can save the continuous open/decode of images.
230  * However the opened images might consume additional RAM.
231  * LV_IMG_CACHE_DEF_SIZE must be >= 1 */
232 #ifndef LV_IMG_CACHE_DEF_SIZE
233 #define LV_IMG_CACHE_DEF_SIZE 1
234 #endif
235 
236 /*Declare the type of the user data of image decoder (can be e.g. `void *`, `int`, `struct`)*/
237 
238 /*=====================
239  * Compiler settings
240  *====================*/
241 /* Define a custom attribute to `lv_tick_inc` function */
242 #ifndef LV_ATTRIBUTE_TICK_INC
243 #define LV_ATTRIBUTE_TICK_INC
244 #endif
245 
246 /* Define a custom attribute to `lv_task_handler` function */
247 #ifndef LV_ATTRIBUTE_TASK_HANDLER
248 #define LV_ATTRIBUTE_TASK_HANDLER
249 #endif
250 
251 /* With size optimization (-Os) the compiler might not align data to
252  * 4 or 8 byte boundary. This alignment will be explicitly applied where needed.
253  * E.g. __attribute__((aligned(4))) */
254 #ifndef LV_ATTRIBUTE_MEM_ALIGN
255 #define LV_ATTRIBUTE_MEM_ALIGN
256 #endif
257 
258 /* Attribute to mark large constant arrays for example
259  * font's bitmaps */
260 #ifndef LV_ATTRIBUTE_LARGE_CONST
261 #define LV_ATTRIBUTE_LARGE_CONST
262 #endif
263 
264 /*===================
265  * HAL settings
266  *==================*/
267 
268 /* 1: use a custom tick source.
269  * It removes the need to manually update the tick with `lv_tick_inc`) */
270 #ifndef LV_TICK_CUSTOM
271 #define LV_TICK_CUSTOM 0
272 #endif
273 #if LV_TICK_CUSTOM == 1
274 #ifndef LV_TICK_CUSTOM_INCLUDE
275 #define LV_TICK_CUSTOM_INCLUDE "something.h" /*Header for the sys time function*/
276 #endif
277 #ifndef LV_TICK_CUSTOM_SYS_TIME_EXPR
278 #define LV_TICK_CUSTOM_SYS_TIME_EXPR (millis()) /*Expression evaluating to current systime in ms*/
279 #endif
280 #endif /*LV_TICK_CUSTOM*/
281 
282 
283 /*================
284  * Log settings
285  *===============*/
286 
287 /*1: Enable the log module*/
288 #ifndef LV_USE_LOG
289 #define LV_USE_LOG 0
290 #endif
291 #if LV_USE_LOG
292 /* How important log should be added:
293  * LV_LOG_LEVEL_TRACE A lot of logs to give detailed information
294  * LV_LOG_LEVEL_INFO Log important events
295  * LV_LOG_LEVEL_WARN Log if something unwanted happened but didn't cause a problem
296  * LV_LOG_LEVEL_ERROR Only critical issue, when the system may fail
297  * LV_LOG_LEVEL_NONE Do not log anything
298  */
299 #ifndef LV_LOG_LEVEL
300 # define LV_LOG_LEVEL LV_LOG_LEVEL_WARN
301 #endif
302 
303 /* 1: Print the log with 'printf';
304  * 0: user need to register a callback with `lv_log_register_print`*/
305 #ifndef LV_LOG_PRINTF
306 # define LV_LOG_PRINTF 0
307 #endif
308 #endif /*LV_USE_LOG*/
309 
310 /*================
311  * THEME USAGE
312  *================*/
313 #ifndef LV_THEME_LIVE_UPDATE
314 #define LV_THEME_LIVE_UPDATE 0 /*1: Allow theme switching at run time. Uses 8..10 kB of RAM*/
315 #endif
316 
317 #ifndef LV_USE_THEME_TEMPL
318 #define LV_USE_THEME_TEMPL 0 /*Just for test*/
319 #endif
320 #ifndef LV_USE_THEME_DEFAULT
321 #define LV_USE_THEME_DEFAULT 0 /*Built mainly from the built-in styles. Consumes very few RAM*/
322 #endif
323 #ifndef LV_USE_THEME_ALIEN
324 #define LV_USE_THEME_ALIEN 0 /*Dark futuristic theme*/
325 #endif
326 #ifndef LV_USE_THEME_NIGHT
327 #define LV_USE_THEME_NIGHT 0 /*Dark elegant theme*/
328 #endif
329 #ifndef LV_USE_THEME_MONO
330 #define LV_USE_THEME_MONO 0 /*Mono color theme for monochrome displays*/
331 #endif
332 #ifndef LV_USE_THEME_MATERIAL
333 #define LV_USE_THEME_MATERIAL 0 /*Flat theme with bold colors and light shadows*/
334 #endif
335 #ifndef LV_USE_THEME_ZEN
336 #define LV_USE_THEME_ZEN 0 /*Peaceful, mainly light theme */
337 #endif
338 #ifndef LV_USE_THEME_NEMO
339 #define LV_USE_THEME_NEMO 0 /*Water-like theme based on the movie "Finding Nemo"*/
340 #endif
341 
342 /*==================
343  * FONT USAGE
344  *===================*/
345 
346 /* The built-in fonts contains the ASCII range and some Symbols with 4 bit-per-pixel.
347  * The symbols are available via `LV_SYMBOL_...` defines
348  * More info about fonts: https://docs.littlevgl.com/#Fonts
349  * To create a new font go to: https://littlevgl.com/ttf-font-to-c-array
350  */
351 
352 /* Robot fonts with bpp = 4
353  * https://fonts.google.com/specimen/Roboto */
354 #ifndef LV_FONT_ROBOTO_12
355 #define LV_FONT_ROBOTO_12 0
356 #endif
357 #ifndef LV_FONT_ROBOTO_16
358 #define LV_FONT_ROBOTO_16 1
359 #endif
360 #ifndef LV_FONT_ROBOTO_22
361 #define LV_FONT_ROBOTO_22 0
362 #endif
363 #ifndef LV_FONT_ROBOTO_28
364 #define LV_FONT_ROBOTO_28 0
365 #endif
366 
367 /*Pixel perfect monospace font
368  * http://pelulamu.net/unscii/ */
369 #ifndef LV_FONT_UNSCII_8
370 #define LV_FONT_UNSCII_8 0
371 #endif
372 
373 /* Optionally declare your custom fonts here.
374  * You can use these fonts as default font too
375  * and they will be available globally. E.g.
376  * #define LV_FONT_CUSTOM_DECLARE LV_FONT_DECLARE(my_font_1) \
377  * LV_FONT_DECLARE(my_font_2)
378  */
379 #ifndef LV_FONT_CUSTOM_DECLARE
380 #define LV_FONT_CUSTOM_DECLARE
381 #endif
382 
383 /*Always set a default font from the built-in fonts*/
384 #ifndef LV_FONT_DEFAULT
385 #define LV_FONT_DEFAULT &lv_font_roboto_16
386 #endif
387 
388 /* Enable it if you have fonts with a lot of characters.
389  * The limit depends on the font size, font face and bpp
390  * but with > 10,000 characters if you see issues probably you need to enable it.*/
391 #ifndef LV_FONT_FMT_TXT_LARGE
392 #define LV_FONT_FMT_TXT_LARGE 0
393 #endif
394 
395 /*Declare the type of the user data of fonts (can be e.g. `void *`, `int`, `struct`)*/
396 
397 /*=================
398  * Text settings
399  *=================*/
400 
401 /* Select a character encoding for strings.
402  * Your IDE or editor should have the same character encoding
403  * - LV_TXT_ENC_UTF8
404  * - LV_TXT_ENC_ASCII
405  * */
406 #ifndef LV_TXT_ENC
407 #define LV_TXT_ENC LV_TXT_ENC_UTF8
408 #endif
409 
410  /*Can break (wrap) texts on these chars*/
411 #ifndef LV_TXT_BREAK_CHARS
412 #define LV_TXT_BREAK_CHARS " ,.;:-_"
413 #endif
414 
415 /*===================
416  * LV_OBJ SETTINGS
417  *==================*/
418 
419 /*Declare the type of the user data of object (can be e.g. `void *`, `int`, `struct`)*/
420 
421 /*1: enable `lv_obj_realaign()` based on `lv_obj_align()` parameters*/
422 #ifndef LV_USE_OBJ_REALIGN
423 #define LV_USE_OBJ_REALIGN 1
424 #endif
425 
426 /* Enable to make the object clickable on a larger area.
427  * LV_EXT_CLICK_AREA_OFF or 0: Disable this feature
428  * LV_EXT_CLICK_AREA_TINY: The extra area can be adjusted horizontally and vertically (0..255 px)
429  * LV_EXT_CLICK_AREA_FULL: The extra area can be adjusted in all 4 directions (-32k..+32k px)
430  */
431 #ifndef LV_USE_EXT_CLICK_AREA
432 #define LV_USE_EXT_CLICK_AREA LV_EXT_CLICK_AREA_OFF
433 #endif
434 
435 /*==================
436  * LV OBJ X USAGE
437  *================*/
438 /*
439  * Documentation of the object types: https://docs.littlevgl.com/#Object-types
440  */
441 
442 /*Arc (dependencies: -)*/
443 #ifndef LV_USE_ARC
444 #define LV_USE_ARC 1
445 #endif
446 
447 /*Bar (dependencies: -)*/
448 #ifndef LV_USE_BAR
449 #define LV_USE_BAR 1
450 #endif
451 
452 /*Button (dependencies: lv_cont*/
453 #ifndef LV_USE_BTN
454 #define LV_USE_BTN 1
455 #endif
456 #if LV_USE_BTN != 0
457 /*Enable button-state animations - draw a circle on click (dependencies: LV_USE_ANIMATION)*/
458 #ifndef LV_BTN_INK_EFFECT
459 # define LV_BTN_INK_EFFECT 0
460 #endif
461 #endif
462 
463 /*Button matrix (dependencies: -)*/
464 #ifndef LV_USE_BTNM
465 #define LV_USE_BTNM 1
466 #endif
467 
468 /*Calendar (dependencies: -)*/
469 #ifndef LV_USE_CALENDAR
470 #define LV_USE_CALENDAR 1
471 #endif
472 
473 /*Canvas (dependencies: lv_img)*/
474 #ifndef LV_USE_CANVAS
475 #define LV_USE_CANVAS 1
476 #endif
477 
478 /*Check box (dependencies: lv_btn, lv_label)*/
479 #ifndef LV_USE_CB
480 #define LV_USE_CB 1
481 #endif
482 
483 /*Chart (dependencies: -)*/
484 #ifndef LV_USE_CHART
485 #define LV_USE_CHART 1
486 #endif
487 #if LV_USE_CHART
488 #ifndef LV_CHART_AXIS_TICK_LABEL_MAX_LEN
489 # define LV_CHART_AXIS_TICK_LABEL_MAX_LEN 20
490 #endif
491 #endif
492 
493 /*Container (dependencies: -*/
494 #ifndef LV_USE_CONT
495 #define LV_USE_CONT 1
496 #endif
497 
498 /*Drop down list (dependencies: lv_page, lv_label, lv_symbol_def.h)*/
499 #ifndef LV_USE_DDLIST
500 #define LV_USE_DDLIST 1
501 #endif
502 #if LV_USE_DDLIST != 0
503 /*Open and close default animation time [ms] (0: no animation)*/
504 #ifndef LV_DDLIST_DEF_ANIM_TIME
505 # define LV_DDLIST_DEF_ANIM_TIME 200
506 #endif
507 #endif
508 
509 /*Gauge (dependencies:lv_bar, lv_lmeter)*/
510 #ifndef LV_USE_GAUGE
511 #define LV_USE_GAUGE 1
512 #endif
513 
514 /*Image (dependencies: lv_label*/
515 #ifndef LV_USE_IMG
516 #define LV_USE_IMG 1
517 #endif
518 
519 /*Image Button (dependencies: lv_btn*/
520 #ifndef LV_USE_IMGBTN
521 #define LV_USE_IMGBTN 1
522 #endif
523 #if LV_USE_IMGBTN
524 /*1: The imgbtn requires left, mid and right parts and the width can be set freely*/
525 #ifndef LV_IMGBTN_TILED
526 # define LV_IMGBTN_TILED 0
527 #endif
528 #endif
529 
530 /*Keyboard (dependencies: lv_btnm)*/
531 #ifndef LV_USE_KB
532 #define LV_USE_KB 1
533 #endif
534 
535 /*Label (dependencies: -*/
536 #ifndef LV_USE_LABEL
537 #define LV_USE_LABEL 1
538 #endif
539 #if LV_USE_LABEL != 0
540 /*Hor, or ver. scroll speed [px/sec] in 'LV_LABEL_LONG_ROLL/ROLL_CIRC' mode*/
541 #ifndef LV_LABEL_DEF_SCROLL_SPEED
542 # define LV_LABEL_DEF_SCROLL_SPEED 25
543 #endif
544 
545 /* Waiting period at beginning/end of animation cycle */
546 #ifndef LV_LABEL_WAIT_CHAR_COUNT
547 # define LV_LABEL_WAIT_CHAR_COUNT 3
548 #endif
549 
550 /*Enable selecting text of the label */
551 #ifndef LV_LABEL_TEXT_SEL
552 # define LV_LABEL_TEXT_SEL 0
553 #endif
554 
555 /*Store extra some info in labels (12 bytes) to speed up drawing of very long texts*/
556 #ifndef LV_LABEL_LONG_TXT_HINT
557 # define LV_LABEL_LONG_TXT_HINT 0
558 #endif
559 #endif
560 
561 /*LED (dependencies: -)*/
562 #ifndef LV_USE_LED
563 #define LV_USE_LED 1
564 #endif
565 
566 /*Line (dependencies: -*/
567 #ifndef LV_USE_LINE
568 #define LV_USE_LINE 1
569 #endif
570 
571 /*List (dependencies: lv_page, lv_btn, lv_label, (lv_img optionally for icons ))*/
572 #ifndef LV_USE_LIST
573 #define LV_USE_LIST 1
574 #endif
575 #if LV_USE_LIST != 0
576 /*Default animation time of focusing to a list element [ms] (0: no animation) */
577 #ifndef LV_LIST_DEF_ANIM_TIME
578 # define LV_LIST_DEF_ANIM_TIME 100
579 #endif
580 #endif
581 
582 /*Line meter (dependencies: *;)*/
583 #ifndef LV_USE_LMETER
584 #define LV_USE_LMETER 1
585 #endif
586 
587 /*Message box (dependencies: lv_rect, lv_btnm, lv_label)*/
588 #ifndef LV_USE_MBOX
589 #define LV_USE_MBOX 1
590 #endif
591 
592 /*Page (dependencies: lv_cont)*/
593 #ifndef LV_USE_PAGE
594 #define LV_USE_PAGE 1
595 #endif
596 #if LV_USE_PAGE != 0
597 /*Focus default animation time [ms] (0: no animation)*/
598 #ifndef LV_PAGE_DEF_ANIM_TIME
599 # define LV_PAGE_DEF_ANIM_TIME 400
600 #endif
601 #endif
602 
603 /*Preload (dependencies: lv_arc, lv_anim)*/
604 #ifndef LV_USE_PRELOAD
605 #define LV_USE_PRELOAD 1
606 #endif
607 #if LV_USE_PRELOAD != 0
608 #ifndef LV_PRELOAD_DEF_ARC_LENGTH
609 # define LV_PRELOAD_DEF_ARC_LENGTH 60 /*[deg]*/
610 #endif
611 #ifndef LV_PRELOAD_DEF_SPIN_TIME
612 # define LV_PRELOAD_DEF_SPIN_TIME 1000 /*[ms]*/
613 #endif
614 #ifndef LV_PRELOAD_DEF_ANIM
615 # define LV_PRELOAD_DEF_ANIM LV_PRELOAD_TYPE_SPINNING_ARC
616 #endif
617 #endif
618 
619 /*Roller (dependencies: lv_ddlist)*/
620 #ifndef LV_USE_ROLLER
621 #define LV_USE_ROLLER 1
622 #endif
623 #if LV_USE_ROLLER != 0
624 /*Focus animation time [ms] (0: no animation)*/
625 #ifndef LV_ROLLER_DEF_ANIM_TIME
626 # define LV_ROLLER_DEF_ANIM_TIME 200
627 #endif
628 
629 /*Number of extra "pages" when the roller is infinite*/
630 #ifndef LV_ROLLER_INF_PAGES
631 # define LV_ROLLER_INF_PAGES 7
632 #endif
633 #endif
634 
635 /*Slider (dependencies: lv_bar)*/
636 #ifndef LV_USE_SLIDER
637 #define LV_USE_SLIDER 1
638 #endif
639 
640 /*Spinbox (dependencies: lv_ta)*/
641 #ifndef LV_USE_SPINBOX
642 #define LV_USE_SPINBOX 1
643 #endif
644 
645 /*Switch (dependencies: lv_slider)*/
646 #ifndef LV_USE_SW
647 #define LV_USE_SW 1
648 #endif
649 
650 /*Text area (dependencies: lv_label, lv_page)*/
651 #ifndef LV_USE_TA
652 #define LV_USE_TA 1
653 #endif
654 #if LV_USE_TA != 0
655 #ifndef LV_TA_DEF_CURSOR_BLINK_TIME
656 # define LV_TA_DEF_CURSOR_BLINK_TIME 400 /*ms*/
657 #endif
658 #ifndef LV_TA_DEF_PWD_SHOW_TIME
659 # define LV_TA_DEF_PWD_SHOW_TIME 1500 /*ms*/
660 #endif
661 #endif
662 
663 /*Table (dependencies: lv_label)*/
664 #ifndef LV_USE_TABLE
665 #define LV_USE_TABLE 1
666 #endif
667 #if LV_USE_TABLE
668 #ifndef LV_TABLE_COL_MAX
669 # define LV_TABLE_COL_MAX 12
670 #endif
671 #endif
672 
673 /*Tab (dependencies: lv_page, lv_btnm)*/
674 #ifndef LV_USE_TABVIEW
675 #define LV_USE_TABVIEW 1
676 #endif
677 # if LV_USE_TABVIEW != 0
678 /*Time of slide animation [ms] (0: no animation)*/
679 #ifndef LV_TABVIEW_DEF_ANIM_TIME
680 # define LV_TABVIEW_DEF_ANIM_TIME 300
681 #endif
682 #endif
683 
684 /*Tileview (dependencies: lv_page) */
685 #ifndef LV_USE_TILEVIEW
686 #define LV_USE_TILEVIEW 1
687 #endif
688 #if LV_USE_TILEVIEW
689 /*Time of slide animation [ms] (0: no animation)*/
690 #ifndef LV_TILEVIEW_DEF_ANIM_TIME
691 # define LV_TILEVIEW_DEF_ANIM_TIME 300
692 #endif
693 #endif
694 
695 /*Window (dependencies: lv_cont, lv_btn, lv_label, lv_img, lv_page)*/
696 #ifndef LV_USE_WIN
697 #define LV_USE_WIN 1
698 #endif
699 
700 /*==================
701  * Non-user section
702  *==================*/
703 
704 #if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) /* Disable warnings for Visual Studio*/
705 #ifndef _CRT_SECURE_NO_WARNINGS
706 # define _CRT_SECURE_NO_WARNINGS
707 #endif
708 #endif
709 
710 
711 #endif /*LV_CONF_CHECKER_H*/
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale