forked from lvgl/lvgl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKconfig
More file actions
3644 lines (2962 loc) · 88.6 KB
/
Copy pathKconfig
File metadata and controls
3644 lines (2962 loc) · 88.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Generated file. DO NOT EDIT!
menu "LVGL"
menu "Memory and Standard Library"
config LV_STDLIB_BUILTIN
int
default 0
config LV_STDLIB_CLIB
int
default 1
config LV_STDLIB_MICROPYTHON
int
default 2
config LV_STDLIB_RTTHREAD
int
default 3
config LV_STDLIB_CUSTOM
int
default 255
choice
prompt "Malloc functions source"
default LV_USE_BUILTIN_MALLOC
config LV_USE_BUILTIN_MALLOC
bool "LVGL's built in implementation"
config LV_USE_CLIB_MALLOC
bool "Standard C functions malloc/realloc/free"
config LV_USE_MICROPYTHON_MALLOC
bool "MicroPython functions malloc/realloc/free"
config LV_USE_RTTHREAD_MALLOC
bool "RT-Thread functions malloc/realloc/free"
config LV_USE_CUSTOM_MALLOC
bool "Implement the functions externally"
endchoice # "Malloc functions"
config LV_USE_STDLIB_MALLOC
int
default LV_STDLIB_BUILTIN if LV_USE_BUILTIN_MALLOC
default LV_STDLIB_CLIB if LV_USE_CLIB_MALLOC
default LV_STDLIB_MICROPYTHON if LV_USE_MICROPYTHON_MALLOC
default LV_STDLIB_RTTHREAD if LV_USE_RTTHREAD_MALLOC
default LV_STDLIB_CUSTOM if LV_USE_CUSTOM_MALLOC
choice
prompt "String functions source"
default LV_USE_BUILTIN_STRING
config LV_USE_BUILTIN_STRING
bool "LVGL's built in implementation"
config LV_USE_CLIB_STRING
bool "Standard C functions memcpy/memset/strlen/strcpy"
config LV_USE_RTTHREAD_STRING
bool "RT-Thread functions rt_memcpy/rt_memset/rt_strlen/rt_strcpy"
config LV_USE_CUSTOM_STRING
bool "Implement the functions externally"
endchoice
config LV_USE_STDLIB_STRING
int
default LV_STDLIB_BUILTIN if LV_USE_BUILTIN_STRING
default LV_STDLIB_CLIB if LV_USE_CLIB_STRING
default LV_STDLIB_RTTHREAD if LV_USE_RTTHREAD_STRING
default LV_STDLIB_CUSTOM if LV_USE_CUSTOM_STRING
choice
prompt "Sprintf functions source"
default LV_USE_BUILTIN_SPRINTF
config LV_USE_BUILTIN_SPRINTF
bool "LVGL's built in implementation"
config LV_USE_CLIB_SPRINTF
bool "Standard C function vsnprintf"
config LV_USE_RTTHREAD_SPRINTF
bool "RT-Thread function rt_vsnprintf"
config LV_USE_CUSTOM_SPRINTF
bool "Implement the functions externally"
endchoice # "Sprintf functions"
config LV_USE_STDLIB_SPRINTF
int
default LV_STDLIB_BUILTIN if LV_USE_BUILTIN_SPRINTF
default LV_STDLIB_CLIB if LV_USE_CLIB_SPRINTF
default LV_STDLIB_RTTHREAD if LV_USE_RTTHREAD_SPRINTF
default LV_STDLIB_CUSTOM if LV_USE_CUSTOM_SPRINTF
if LV_USE_BUILTIN_MALLOC
menu "Builtin Malloc Settings"
config LV_MEM_SIZE
int "Memory size in bytes (Needs to be at least 2kB (2048))"
default 65536
config LV_MEM_SIZE_KILOBYTES
int "Memory size (KB) [DEPRECATED: use LV_MEM_SIZE]"
default 0
help
Deprecated. Use LV_MEM_SIZE (in bytes) instead.
config LV_MEM_POOL_EXPAND_SIZE_KILOBYTES
int "Size of the memory expand for `lv_malloc()` in kilobytes [DEPRECATED: use LV_MEM_SIZE directly]"
default 0
help
Deprecated. Modify LV_MEM_SIZE (in bytes) directly instead.
config LV_MEM_ADR
hex "Address for the memory pool instead of allocating it as a normal array. 0: unused"
default 0x0
endmenu
endif #LV_USE_BUILTIN_MALLOC
# Standard library headers LVGL includes. Keep the angle brackets / quotes in
# the value: it is emitted verbatim (unquoted) as the #include argument.
config LV_STDINT_INCLUDE
string "Header for integer types (stdint)"
default "stdint.h"
config LV_STDDEF_INCLUDE
string "Header for standard definitions (stddef)"
default "stddef.h"
config LV_STDBOOL_INCLUDE
string "Header for boolean types (stdbool)"
default "stdbool.h"
config LV_INTTYPES_INCLUDE
string "Header for fixed-width integer format macros (inttypes)"
default "inttypes.h"
config LV_LIMITS_INCLUDE
string "Header for implementation limits (limits)"
default "limits.h"
config LV_STDARG_INCLUDE
string "Header for variadic argument handling (stdarg)"
default "stdarg.h"
endmenu
menu "Operating System (OS)"
choice LV_USE_OS
prompt "Default operating system to use"
default LV_OS_NONE
config LV_OS_NONE
bool "NONE"
config LV_OS_PTHREAD
bool "PTHREAD"
select LV_OS_USE_PTHREAD
config LV_OS_FREERTOS
bool "FREERTOS"
select LV_OS_USE_FREERTOS
config LV_OS_CMSIS_RTOS2
bool "CMSIS_RTOS2"
select LV_OS_USE_CMSIS_RTOS2
config LV_OS_RTTHREAD
bool "RTTHREAD"
select LV_OS_USE_RTTHREAD
config LV_OS_WINDOWS
bool "WINDOWS"
select LV_OS_USE_WINDOWS
config LV_OS_MQX
bool "MQX"
select LV_OS_USE_MQX
config LV_OS_SDL2
bool "SDL2"
select LV_OS_USE_SDL2
config LV_OS_CUSTOM
bool "CUSTOM"
select LV_OS_USE_CUSTOM_INCLUDE
endchoice
config LV_USE_OS
int
default 0 if LV_OS_NONE
default 1 if LV_OS_PTHREAD
default 2 if LV_OS_FREERTOS
default 3 if LV_OS_CMSIS_RTOS2
default 4 if LV_OS_RTTHREAD
default 5 if LV_OS_WINDOWS
default 6 if LV_OS_MQX
default 7 if LV_OS_SDL2
default 255 if LV_OS_CUSTOM
# Internal flags that can be used to
# generate cmake variables during build
config LV_OS_USE_PTHREAD
bool
config LV_OS_USE_FREERTOS
bool
config LV_OS_USE_CMSIS_RTOS2
bool
config LV_OS_USE_RTTHREAD
bool
config LV_OS_USE_WINDOWS
bool
config LV_OS_USE_MQX
bool
config LV_OS_USE_SDL2
bool
config LV_OS_USE_CUSTOM_INCLUDE
bool
config LV_OS_USE_CUSTOM_INCLUDE
bool
config LV_OS_CUSTOM_INCLUDE
string "Custom OS include header"
default ""
depends on LV_OS_CUSTOM
if LV_OS_FREERTOS
menu "FreeRTOS Configuration"
config LV_USE_FREERTOS_TASK_NOTIFY
bool "Use RTOS task with a direct notification for synchronization"
default y
help
Unblocking an RTOS task with a direct notification is 45% faster and uses less RAM
than unblocking a task using an intermediary object such as a binary semaphore.
RTOS task notifications can only be used when there is only one task that can be the recipient of the event.
config LV_OS_IDLE_PERCENT_CUSTOM
bool "Custom idle percentage calculation"
default n
help
Enable this to provide a custom implementation of lv_os_get_idle_percent.
This is useful for multi-core systems where the default
FreeRTOS implementation might not sufficiently track idle time across all cores.
endmenu
endif #LV_OS_FREERTOS
endmenu
menu "Rendering Configuration"
menu "Color Settings"
choice
prompt "Color depth"
default LV_COLOR_DEPTH_16
help
Color depth to be used.
config LV_COLOR_DEPTH_32
bool "32: XRGB8888"
imply LV_FONT_MONTSERRAT_14
config LV_COLOR_DEPTH_24
bool "24: RGB888"
imply LV_FONT_MONTSERRAT_14
config LV_COLOR_DEPTH_16
bool "16: RGB565"
imply LV_FONT_MONTSERRAT_14
config LV_COLOR_DEPTH_8
bool "8: RGB232"
imply LV_FONT_UNSCII_8
config LV_COLOR_DEPTH_1
bool "1: 1 byte per pixel"
imply LV_FONT_MONTSERRAT_14
endchoice
config LV_COLOR_DEPTH
int
default 1 if LV_COLOR_DEPTH_1
default 8 if LV_COLOR_DEPTH_8
default 16 if LV_COLOR_DEPTH_16
default 24 if LV_COLOR_DEPTH_24
default 32 if LV_COLOR_DEPTH_32
help
Color depth: 1 (I1), 8 (L8), 16 (RGB565), 24 (RGB888), 32 (XRGB8888)
config LV_COLOR_MIX_ROUND_OFS
int "Adjust color mix functions rounding"
default 0
range 0 254
help
0: no adjustment, get the integer part of the result (round down)
64: round up from x.75
128: round up from half
192: round up from x.25
254: round up
endmenu
# Capability configs, these are set internally by draw units. Can be used by eg: widgets that depend
# on a specific draw feature
config LV_DRAW_HAS_VECTOR_SUPPORT
bool
default n
config LV_DRAW_HAS_3D_SUPPORT
bool
default n
config LV_DEF_REFR_PERIOD
int "Default refresh period (ms)"
default 33
help
Default display refresh, input device read and animation step period.
config LV_DPI_DEF
int "Default Dots Per Inch (in px/inch)"
default 130
help
Used to initialize default sizes such as widgets sizes and style paddings.
(Not so important, you can adjust it to modify default sizes and spaces)
config LV_DRAW_BUF_STRIDE_ALIGN
int "Buffer stride alignment"
default 1
help
Align the stride of all layers and images to this many bytes.
config LV_DRAW_BUF_ALIGN
int "Buffer address alignment"
default 4
help
Align the start address of draw_buf addresses to this many bytes.
config LV_USE_MATRIX
bool "Enable matrix support"
default n
select LV_USE_FLOAT
help
Enable matrix support
config LV_DRAW_TRANSFORM_USE_MATRIX
bool "Using matrix for transformations"
default n
depends on LV_USE_MATRIX
help
Requirements: The rendering engine needs to support 3x3 matrix transformations.
config LV_DRAW_LAYER_SIMPLE_BUF_SIZE
int "Optimal size to buffer the widget with opacity"
default 24576
help
If a widget has `style_opa < 255` (not `bg_opa`, `text_opa` etc) or not NORMAL blend mode
it is buffered into a "simple" layer before rendering. The widget can be buffered in smaller chunks.
"Transformed layers" (if `transform_angle/zoom` are set) use larger buffers and can't be drawn in chunks.
config LV_DRAW_LAYER_MAX_MEMORY
int "The maximum amount of memory that can be used for layers"
default 0
help
Limit the max allocated memory for simple and transformed layers.
It should be at least `LV_DRAW_LAYER_SIMPLE_BUF_SIZE` sized but if transformed layers are also used
it should be enough to store the largest widget too (width x height x 4 area).
Set it to 0 to have no limit.
config LV_DRAW_THREAD_STACK_SIZE
int "Stack size of draw thread in bytes"
default 8192
depends on !LV_OS_NONE
help
If FreeType or ThorVG is enabled, it is recommended to set it to 32KB or more.
config LV_DRAW_THREAD_PRIO
int "Thread priority for the drawing thread"
range 0 4
default 3
depends on !LV_OS_NONE
help
Thread priority controls the relative importance of the drawing threads.
Values correspond to lv_thread_prio_t enum in lv_os.h:
0: LV_THREAD_PRIO_LOWEST
1: LV_THREAD_PRIO_LOW
2: LV_THREAD_PRIO_MID (default)
3: LV_THREAD_PRIO_HIGH
4: LV_THREAD_PRIO_HIGHEST
Higher priority can improve rendering performance but might cause
starvation of lower priority tasks.
config LV_USE_VECTOR_GRAPHIC
bool "Use Vector Graphic APIs"
default n
select LV_USE_MATRIX
help
Enable drawing support vector graphic APIs.
config LV_USE_SNAPSHOT
bool "Enable API to take snapshot"
default n
help
Enable API to take snapshot for object
config LV_USE_THORVG
bool "ThorVG library for vector graphics support"
default n
select LV_DRAW_HAS_VECTOR_SUPPORT if LV_USE_DRAW_SW
config LV_USE_THORVG_INTERNAL
bool "Internal ThorVG library bundled with LVGL"
default y
depends on LV_USE_THORVG
# These are menus because they contain a lot of configuration options
menu "Software Rendering (SW)"
config LV_USE_DRAW_SW
bool "Enable software rendering"
default y
help
Required to draw anything on the screen.
if LV_USE_DRAW_SW
config LV_DRAW_SW_SUPPORT_RGB565
bool "Enable support for RGB565 color format"
default y
config LV_DRAW_SW_SUPPORT_RGB565_SWAPPED
bool "Enable support for RGB565 swapped color format"
default y
config LV_DRAW_SW_SUPPORT_RGB565A8
bool "Enable support for RGB565A8 color format"
default y
config LV_DRAW_SW_SUPPORT_RGB888
bool "Enable support for RGB888 color format"
default y
config LV_DRAW_SW_SUPPORT_XRGB8888
bool "Enable support for XRGB8888 color format"
default y
config LV_DRAW_SW_SUPPORT_ARGB8888
bool "Enable support for ARGB8888 color format"
default y
config LV_DRAW_SW_SUPPORT_ARGB8888_PREMULTIPLIED
bool "Enable support for ARGB8888 premultiplied color format"
default y
config LV_DRAW_SW_SUPPORT_L8
bool "Enable support for L8 color format"
default y
config LV_DRAW_SW_SUPPORT_AL88
bool "Enable support for AL88 color format"
default y
config LV_DRAW_SW_SUPPORT_A8
bool "Enable support for A8 color format"
default y
config LV_DRAW_SW_SUPPORT_I1
bool "Enable support for I1 color format"
default y
config LV_DRAW_SW_I1_LUM_THRESHOLD
int "Luminance threshold for a pixel to be active"
default 127
range 0 254
depends on LV_DRAW_SW_SUPPORT_I1
config LV_DRAW_SW_DRAW_UNIT_CNT
int "Number of draw units"
default 1
depends on !LV_OS_NONE
help
Number of threads used to render a frame in parallel
config LV_USE_DRAW_ARM2D_SYNC
bool "Enable Arm's 2D image processing library (Arm-2D) for all Cortex-M processors"
default n
help
Must deploy arm-2d library to your project and add include PATH for "arm_2d.h".
config LV_USE_NATIVE_HELIUM_ASM
bool "Enable native helium assembly"
default n
help
Disabling this allows arm2d to work on its own (for testing only)
config LV_DRAW_SW_COMPLEX
bool "Enable complex draw engine"
default y
help
0: use a simple renderer capable of drawing only simple rectangles with gradient, images, texts, and straight lines only,
1: use a complex renderer capable of drawing rounded corners, shadow, skew lines, and arcs too.
config LV_GRADIENT_MAX_STOPS
int "Number of stops allowed per gradient"
default 2
help
Increase this to allow more stops.
This adds (sizeof(lv_color_t) + 1) bytes per additional stop
config LV_USE_DRAW_SW_COMPLEX_GRADIENTS
bool "Enable drawing complex gradients in software"
default n
help
0: do not enable complex gradients
1: enable complex gradients (linear at an angle, radial or conical)
config LV_DRAW_SW_SHADOW_CACHE_SIZE
int "Allow buffering some shadow calculation"
depends on LV_DRAW_SW_COMPLEX
default 0
help
LV_DRAW_SW_SHADOW_CACHE_SIZE is the max shadow size to buffer, where
shadow size is `shadow_width + radius`.
Caching has LV_DRAW_SW_SHADOW_CACHE_SIZE^2 RAM cost.
config LV_DRAW_SW_CIRCLE_CACHE_SIZE
int "Set number of maximally cached circle data"
depends on LV_DRAW_SW_COMPLEX
default 4
help
The circumference of 1/4 circle are saved for anti-aliasing
radius * 4 bytes are used per circle (the most often used
radiuses are saved).
Set to 0 to disable caching.
choice LV_USE_DRAW_SW_ASM
prompt "Asm mode in sw draw"
default LV_DRAW_SW_ASM_NONE
help
ASM mode to be used
config LV_DRAW_SW_ASM_NONE
bool "0: NONE"
config LV_DRAW_SW_ASM_NEON
bool "1: NEON"
config LV_DRAW_SW_ASM_HELIUM
bool "2: HELIUM"
config LV_DRAW_SW_ASM_RISCV_V
bool "3: RISC-V Vector"
config LV_DRAW_SW_ASM_CUSTOM
bool "255: CUSTOM"
select LV_DRAW_SW_ASM_USE_CUSTOM_INCLUDE
endchoice
config LV_USE_DRAW_SW_ASM
int
default 0 if LV_DRAW_SW_ASM_NONE
default 1 if LV_DRAW_SW_ASM_NEON
default 2 if LV_DRAW_SW_ASM_HELIUM
default 3 if LV_DRAW_SW_ASM_RISCV_V
default 255 if LV_DRAW_SW_ASM_CUSTOM
config LV_DRAW_SW_ASM_USE_CUSTOM_INCLUDE
bool
config LV_DRAW_SW_ASM_CUSTOM_INCLUDE
string "Set the custom asm include file"
default ""
depends on LV_DRAW_SW_ASM_CUSTOM
endif #LV_USE_DRAW_SW
endmenu
menu "VGLite"
config LV_USE_DRAW_VG_LITE
bool "Use VG-Lite GPU"
default n
select LV_USE_MATRIX
select LV_DRAW_HAS_VECTOR_SUPPORT
help
Use VG-Lite GPU.
if LV_USE_DRAW_VG_LITE
config LV_VG_LITE_USE_GPU_INIT
bool "Enable VG-Lite custom external 'gpu_init()' function"
default n
config LV_VG_LITE_USE_ASSERT
bool "Enable VG-Lite assert"
default n
config LV_VG_LITE_FLUSH_MAX_COUNT
int "VG-Lite flush commit trigger threshold"
default 8
help
GPU will try to batch these many draw tasks
config LV_VG_LITE_USE_BOX_SHADOW
bool "Enable border to simulate shadow"
default y
help
which usually improves performance,
but does not guarantee the same rendering quality as the software.
config LV_VG_LITE_GRAD_CACHE_CNT
int "VG-Lite gradient maximum cache number"
default 32
help
The memory usage of a single gradient:
linear: 4K bytes.
radial: radius * 4K bytes.
config LV_VG_LITE_STROKE_CACHE_CNT
int "VG-Lite stroke maximum cache number"
default 32
config LV_VG_LITE_BITMAP_FONT_CACHE_CNT
int "VG-Lite unaligned bitmap font maximum cache number"
default 256
config LV_VG_LITE_DISABLE_VLC_OP_CLOSE
bool "Remove VLC_OP_CLOSE path instruction (Workaround for NXP)"
default n
config LV_VG_LITE_DISABLE_LINEAR_GRADIENT_EXT
bool "Disable linear gradient extension for some older versions of drivers"
default n
config LV_VG_LITE_DISABLE_BLIT_RECT_OFFSET
bool "Disable blit rectangular offset to resolve certain hardware errors"
default n
config LV_VG_LITE_PATH_DUMP_MAX_LEN
int "Maximum path dump print length (in points)"
default 1000
config LV_USE_VG_LITE_DRIVER
bool "Use LVGL's built-in vg_lite driver"
default n
if LV_USE_VG_LITE_DRIVER
# The GPU series + revision selects which
# VGLite/Series/<series>/<revision>/vg_lite_options.h is included. A
# free-form string/hex pair can't be represented in Kconfig (the include
# path needs unquoted tokens), so the supported GPUs are offered as a choice
# and mapped to the include in VGLite/vg_lite_options.h.
choice
prompt "VG-Lite GPU (series and revision)"
default LV_VG_LITE_GPU_GC255_0X40A
config LV_VG_LITE_GPU_GC255_0X40A
bool "GC255 (revision 0x40A)"
config LV_VG_LITE_GPU_GC355_0X0_1215
bool "GC355 (revision 0x0_1215)"
config LV_VG_LITE_GPU_GC355_0X0_1216
bool "GC355 (revision 0x0_1216)"
config LV_VG_LITE_GPU_GC555_0X423
bool "GC555 (revision 0x423)"
config LV_VG_LITE_GPU_GC555_0X423_ECO
bool "GC555 (revision 0x423 ECO)"
config LV_VG_LITE_GPU_GCNANOULTRAV_0X1003
bool "GCNanoUltraV (revision 0x1003)"
endchoice
config LV_VG_LITE_GPU
int
default 0 if LV_VG_LITE_GPU_GC255_0X40A
default 1 if LV_VG_LITE_GPU_GC355_0X0_1215
default 2 if LV_VG_LITE_GPU_GC355_0X0_1216
default 3 if LV_VG_LITE_GPU_GC555_0X423
default 4 if LV_VG_LITE_GPU_GC555_0X423_ECO
default 5 if LV_VG_LITE_GPU_GCNANOULTRAV_0X1003
config LV_VG_LITE_HAL_GPU_BASE_ADDRESS
hex "VG-Lite GPU base address"
default 0x40240000
endif #LV_USE_VG_LITE_DRIVER
config LV_USE_VG_LITE_THORVG
bool "VG-Lite Simulator"
default n
select LV_USE_THORVG
help
Use thorvg to simulate VG-Lite hardware behavior, it's useful
for debugging and testing on PC simulator. Enable LV_USE_THORVG,
Either internal ThorVG or external ThorVG library is required.
if LV_USE_VG_LITE_THORVG
config LV_VG_LITE_THORVG_LVGL_BLEND_SUPPORT
bool "Enable LVGL blend mode support"
default n
depends on LV_USE_VG_LITE_THORVG
config LV_VG_LITE_THORVG_YUV_SUPPORT
bool "Enable YUV color format support"
default n
config LV_VG_LITE_THORVG_LINEAR_GRADIENT_EXT_SUPPORT
bool "Enable linear gradient extension support"
default n
config LV_VG_LITE_THORVG_16PIXELS_ALIGN
bool "Enable 16 pixels alignment"
default y
config LV_VG_LITE_THORVG_BUF_ADDR_ALIGN
int "Buffer address alignment"
default 64
config LV_VG_LITE_THORVG_THREAD_RENDER
bool "Enable multi-thread render"
default n
endif #LV_USE_VG_LITE_THORVG
endif #LV_USE_DRAW_VG_LITE
endmenu
menu "DAVE/2D"
config LV_USE_DRAW_DAVE2D
bool "Use Renesas Dave2D on RA platforms"
default n
help
Use Renesas Dave2D on RA platforms.
endmenu
menu "Nema GFX"
config LV_USE_NEMA_GFX
bool "Use NemaGFX acceleration"
default n
help
Use TSi's aka (Think Silicon) NemaGFX
if LV_USE_NEMA_GFX
config LV_NEMA_USE_CACHE
bool "Cache handling of NemaGFX"
default n
config LV_NEMA_CACHE_HAL_INCLUDE
string "NemaGFX Cache HAL include"
default "stm32u5xx_hal.h"
depends on LV_NEMA_USE_CACHE
choice LV_USE_NEMA_LIB
prompt "NemaGFX static library"
default LV_NEMA_LIB_NONE
config LV_NEMA_LIB_NONE
bool "LV_NEMA_LIB_NONE"
config LV_NEMA_LIB_M33_REVC
bool "LV_NEMA_LIB_M33_REVC"
config LV_NEMA_LIB_M33_NEMAPVG
bool "LV_NEMA_LIB_M33_NEMAPVG"
config LV_NEMA_LIB_M55
bool "LV_NEMA_LIB_M55"
config LV_NEMA_LIB_M7
bool "LV_NEMA_LIB_M7"
endchoice
config LV_USE_NEMA_LIB
int
default 0 if LV_NEMA_LIB_NONE
default 1 if LV_NEMA_LIB_M33_REVC
default 2 if LV_NEMA_LIB_M33_NEMAPVG
default 3 if LV_NEMA_LIB_M55
default 4 if LV_NEMA_LIB_M7
choice LV_USE_NEMA_HAL
prompt "NemaGFX HAL"
default LV_NEMA_HAL_CUSTOM
config LV_NEMA_HAL_CUSTOM
bool "LV_NEMA_HAL_CUSTOM"
config LV_NEMA_HAL_STM32
bool "LV_NEMA_HAL_STM32"
endchoice
config LV_USE_NEMA_HAL
int
default 0 if LV_NEMA_HAL_CUSTOM
default 1 if LV_NEMA_HAL_STM32
config LV_NEMA_STM32_HAL_INCLUDE
string "NemaGFX STM32 HAL include"
default "stm32u5xx_hal.h"
depends on LV_NEMA_HAL_STM32
config LV_NEMA_USE_CUSTOM_INCLUDE
bool "Include a custom NemaGFX attribute header"
default n
depends on LV_NEMA_HAL_STM32
help
Include the header given by LV_NEMA_CUSTOM_INCLUDE to override
NemaGFX/STM32 HAL-specific macros such as
LV_NEMA_STM32_HAL_ATTRIBUTE_POOL_MEM.
config LV_NEMA_CUSTOM_INCLUDE
string "Path to custom NemaGFX attribute header"
default ""
depends on LV_NEMA_USE_CUSTOM_INCLUDE
help
Optional header to override NemaGFX/STM32 HAL-specific macros.
LV_NEMA_STM32_HAL_ATTRIBUTE_POOL_MEM
Attribute applied to the NemaGFX memory pool on STM32 targets.
Used to place the pool in a specific RAM region accessible by
the NemaGFX DMA.
e.g. __attribute__((section(".nema_pool")))
config LV_USE_NEMA_VG
bool "Enable NemaVG operations"
select LV_DRAW_HAS_VECTOR_SUPPORT
default n
config LV_NEMA_GFX_MAX_RESX
int "NemaVG max horizontal resolution"
default 800
config LV_NEMA_GFX_MAX_RESY
int "NemaVG max vertical resolution"
default 600
endif
endmenu
menu "NXP PXP"
config LV_USE_PXP
bool "Use PXP (legacy, no effect) [DEPRECATED: use LV_USE_DRAW_PXP]"
default n
help
Deprecated and non-functional. Use LV_USE_DRAW_PXP instead.
config LV_USE_DRAW_PXP
bool "Use PXP for drawing"
default n
if LV_USE_DRAW_PXP
config LV_USE_ROTATE_PXP
bool "Use PXP to rotate the display"
default n
config LV_USE_PXP_DRAW_THREAD
bool "Use additional draw thread for PXP processing"
depends on !LV_OS_NONE
default y
config LV_USE_PXP_ASSERT
bool "Enable PXP asserts"
endif
endmenu
menu "ESP32 PPA"
config LV_USE_PPA
bool "Use Espressif's PPA accelerator for ESP SoCs"
default n
help
Draw using Espressif PPA accelerator
if LV_USE_PPA
config LV_USE_PPA_IMG
bool "Use Espressif's PPA accelerator for Image draw"
default n
config LV_PPA_BURST_LENGTH
int "PPA Burst length in bytes"
default 128
help
PPA burst length size in bytes.
endif
endmenu
menu "DMA2D"
config LV_USE_DRAW_DMA2D
bool "Use DMA2D on the supporting STM32 platforms"
default n
help
Accelerate blends, fills, image decoding, etc. with STM32 DMA2D.
if LV_USE_DRAW_DMA2D
config LV_DRAW_DMA2D_HAL_INCLUDE
string "the header file for LVGL to include for DMA2D"
default "stm32h7xx_hal.h"
config LV_USE_DRAW_DMA2D_INTERRUPT
bool "use the DMA2D transfer complete interrupt"
default n
help
if enabled, the user is required to call
`lv_draw_dma2d_transfer_complete_interrupt_handler`
upon receiving the DMA2D global interrupt
endif
endmenu
menu "EVE"
config LV_USE_DRAW_EVE
bool "Use EVE FT81X GPU"
default n
help
Use EVE FT81X GPU.
if LV_USE_DRAW_EVE
config LV_DRAW_EVE_EVE_GENERATION
int "EVE_GEN value"
default 4
range 2 4
config LV_DRAW_EVE_WRITE_BUFFER_SIZE
int "Max bytes to buffer for each SPI transmission or 0 to disable buffering"
default 2048
endif
endmenu
menu "NXP G2D"
config LV_USE_G2D
bool "Use G2D (legacy, no effect) [DEPRECATED: use LV_USE_DRAW_G2D]"
default n
help
Deprecated and non-functional. Use LV_USE_DRAW_G2D instead.
config LV_USE_DRAW_G2D
bool "Use G2D for drawing"
default n
if LV_USE_DRAW_G2D
config LV_G2D_HASH_TABLE_SIZE
int "Maximum number of buffers that can be stored for G2D draw unit"
default 50
help
Includes the frame buffers and assets.
config LV_USE_G2D_DRAW_THREAD
bool "Use additional draw thread for G2D processing"
depends on !LV_OS_NONE
default y
config LV_USE_G2D_ASSERT
bool "Enable G2D asserts"
depends on LV_USE_DRAW_G2D
default n
endif
endmenu
menu "NanoVG (OpenGL Shaders)"
config LV_USE_DRAW_NANOVG
bool "Use NanoVG Renderer."
default n
select LV_USE_NANOVG
select LV_USE_MATRIX
select LV_DRAW_HAS_VECTOR_SUPPORT
select LV_DRAW_HAS_3D_SUPPORT
help
Use NanoVG Renderer
if LV_USE_DRAW_NANOVG
choice LV_NANOVG_BACKEND
prompt "NanoVG OpenGL backend"
default LV_NANOVG_BACKEND_GLES2
help
Select which OpenGL implementation to use for NanoVG rendering.
config LV_NANOVG_BACKEND_GL2
bool "OpenGL 2.0"
config LV_NANOVG_BACKEND_GL3
bool "OpenGL 3.0+"
config LV_NANOVG_BACKEND_GLES2
bool "OpenGL ES 2.0"
config LV_NANOVG_BACKEND_GLES3
bool "OpenGL ES 3.0+"
endchoice
config LV_NANOVG_BACKEND
int
default 1 if LV_NANOVG_BACKEND_GL2
default 2 if LV_NANOVG_BACKEND_GL3