Repository navigation
Expand file tree
/
Copy pathKconfig
More file actions
3914 lines (3211 loc) · 93.1 KB
/
Copy pathKconfig
File metadata and controls
3914 lines (3211 loc) · 93.1 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
select LV_USE_TLSF
bool "LVGL built-in"
config LV_USE_CLIB_MALLOC
bool "C standard library (malloc/realloc/free)"
config LV_USE_MICROPYTHON_MALLOC
bool "MicroPython"
config LV_USE_RTTHREAD_MALLOC
bool "RT-Thread"
config LV_USE_CUSTOM_MALLOC
bool "Custom (implemented 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 built-in"
config LV_USE_CLIB_STRING
bool "C standard library (memcpy/memset/strlen/strcpy)"
config LV_USE_RTTHREAD_STRING
bool "RT-Thread (rt_memcpy/rt_memset/rt_strlen/rt_strcpy)"
config LV_USE_CUSTOM_STRING
bool "Custom (implemented 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 built-in"
config LV_USE_CLIB_SPRINTF
bool "C standard library (vsnprintf)"
config LV_USE_RTTHREAD_SPRINTF
bool "RT-Thread (rt_vsnprintf)"
config LV_USE_CUSTOM_SPRINTF
bool "Custom (implemented 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 (bytes)"
default 65536
help
Size of the pool `lv_malloc()` allocates from. Needs to be at least 2kB (2048).
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 "Memory pool expand size (KB) [DEPRECATED: use LV_MEM_SIZE directly]"
default 0
help
Deprecated. Modify LV_MEM_SIZE (in bytes) directly instead.
config LV_MEM_ADR
hex "Memory pool address"
default 0x0
help
Place the pool at a fixed address instead of allocating it as a normal array.
0: unused.
endmenu
endif #LV_USE_BUILTIN_MALLOC
# 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"
config LV_USE_TLSF
bool
default n
endmenu
menu "Operating System (OS)"
choice LV_USE_OS
prompt "Operating system"
default LV_OS_NONE
config LV_OS_NONE
bool "None"
config LV_OS_PTHREAD
bool "POSIX threads (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 "RT-Thread"
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
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_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 "Direct task notifications"
default y
help
Synchronize with direct task notifications instead of an intermediary object such as a
binary semaphore: 45% faster and less RAM, but only usable when a single task can be
the recipient of the event.
config LV_OS_IDLE_PERCENT_CUSTOM
bool "Custom idle percentage calculation"
default n
help
Provide your own lv_os_get_idle_percent(). Useful on multi-core systems, where the
default FreeRTOS implementation may not track idle time across all cores.
endmenu
endif #LV_OS_FREERTOS
endmenu
menu "Rendering Configuration"
menu "Color Settings"
choice LV_COLOR_FORMAT_DEFAULT
prompt "Default color format"
default LV_COLOR_FORMAT_I1 if LV_COLOR_DEPTH_1
default LV_COLOR_FORMAT_L8 if LV_COLOR_DEPTH_8
default LV_COLOR_FORMAT_RGB888 if LV_COLOR_DEPTH_24
default LV_COLOR_FORMAT_XRGB8888 if LV_COLOR_DEPTH_32
default LV_COLOR_FORMAT_RGB565
config LV_COLOR_FORMAT_I1
bool "I1"
imply LV_FONT_UNSCII_8
config LV_COLOR_FORMAT_L8
bool "L8"
imply LV_FONT_UNSCII_8
config LV_COLOR_FORMAT_RGB565
bool "RGB565"
imply LV_FONT_MONTSERRAT_14
config LV_COLOR_FORMAT_RGB565_SWAPPED
bool "RGB565 (Big-endian)"
imply LV_FONT_MONTSERRAT_14
config LV_COLOR_FORMAT_RGB888
bool "RGB888"
imply LV_FONT_MONTSERRAT_14
config LV_COLOR_FORMAT_XRGB8888
bool "XRGB8888"
imply LV_FONT_MONTSERRAT_14
config LV_COLOR_FORMAT_ARGB8888
bool "ARGB8888"
imply LV_FONT_MONTSERRAT_14
config LV_COLOR_FORMAT_ARGB8888_PREMULTIPLIED
bool "ARGB8888 (premultiplied)"
imply LV_FONT_MONTSERRAT_14
endchoice
choice LV_COLOR_DEPTH_CHOICE
prompt "Color depth [DEPRECATED: Use LV_COLOR_FORMAT_DEFAULT]"
default LV_COLOR_DEPTH_UNSET
config LV_COLOR_DEPTH_UNSET
bool "Use LV_COLOR_FORMAT_DEFAULT"
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: L8 (grayscale)"
imply LV_FONT_UNSCII_8
config LV_COLOR_DEPTH_1
bool "1: I1 (1 bit per pixel)"
imply LV_FONT_MONTSERRAT_14
endchoice
config LV_COLOR_DEPTH
int
default 1 if LV_COLOR_FORMAT_I1
default 8 if LV_COLOR_FORMAT_L8
default 16 if LV_COLOR_FORMAT_RGB565 || LV_COLOR_FORMAT_RGB565_SWAPPED
default 24 if LV_COLOR_FORMAT_RGB888
default 32
config LV_COLOR_MIX_ROUND_OFS
int "Color mix rounding offset"
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
config LV_DRAW_HAS_VECTOR_SUPPORT
bool
default n
config LV_DRAW_HAS_3D_SUPPORT
bool
default n
config LV_DRAW_DISABLE_TILED_RENDERING
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 DPI (px/inch)"
default 130
help
Used to initialize default sizes such as widget sizes and style paddings.
config LV_DRAW_BUF_STRIDE_ALIGN
int "Draw buffer stride alignment (bytes)"
default 1
help
Align the stride of all layers and images to this many bytes.
config LV_DRAW_BUF_ALIGN
int "Draw buffer address alignment (bytes)"
default 4
help
Align the start address of draw_buf addresses to this many bytes.
config LV_USE_MATRIX
bool "Matrix"
default n
select LV_USE_FLOAT
help
3x3 matrix API (lv_matrix_t) for transformations. Requires floating point support.
config LV_DRAW_TRANSFORM_USE_MATRIX
bool "Matrix based transformations"
default n
depends on LV_USE_MATRIX
help
The rendering engine must support 3x3 matrix transformations.
config LV_DRAW_LAYER_SIMPLE_BUF_SIZE
int "Simple layer buffer size (bytes)"
default 24576
help
Widgets with `style_opa < 255` (not `bg_opa`, `text_opa` etc) or a non-NORMAL blend mode are
buffered into a "simple" layer in chunks of this size.
"Transformed layers" (if `transform_angle/zoom` are set) use larger buffers and can't be chunked.
config LV_DRAW_LAYER_MAX_MEMORY
int "Maximum layer memory (bytes)"
default 0
help
Limit for simple and transformed layers together; 0 means no limit.
Must be at least `LV_DRAW_LAYER_SIMPLE_BUF_SIZE`, and with transformed layers large enough
for the largest widget too (width x height x 4).
config LV_DRAW_THREAD_STACK_SIZE
int "Draw thread stack size (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 "Draw thread priority"
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 "Vector graphics"
default n
select LV_USE_MATRIX
help
Vector drawing API (lv_vector_dsc_*) for paths, strokes and fills.
Needs a renderer with vector support, e.g. the SW renderer with ThorVG, or VG-Lite.
config LV_USE_SNAPSHOT
bool "Snapshot"
default n
help
Render a widget and its children into an image buffer with lv_snapshot_take().
config LV_USE_THORVG
bool "Vector graphics engine (ThorVG)"
default n
select LV_DRAW_HAS_VECTOR_SUPPORT if LV_USE_DRAW_SW
help
Backend that gives the SW renderer vector graphics support.
config LV_USE_THORVG_INTERNAL
bool "Bundled ThorVG"
default y
depends on LV_USE_THORVG
help
Build the ThorVG copy shipped with LVGL instead of linking an external one.
menu "SW"
config LV_USE_DRAW_SW
bool "SW renderer"
default y
help
Required to draw anything on the screen.
if LV_USE_DRAW_SW
menu "Supported color formats"
config LV_DRAW_SW_SUPPORT_RGB565
bool "RGB565"
default y
config LV_DRAW_SW_SUPPORT_RGB565_SWAPPED
bool "RGB565 swapped"
default y
config LV_DRAW_SW_SUPPORT_RGB565A8
bool "RGB565A8"
default y
config LV_DRAW_SW_SUPPORT_RGB888
bool "RGB888"
default y
config LV_DRAW_SW_SUPPORT_XRGB8888
bool "XRGB8888"
default y
config LV_DRAW_SW_SUPPORT_ARGB8888
bool "ARGB8888"
default y
config LV_DRAW_SW_SUPPORT_ARGB8888_PREMULTIPLIED
bool "ARGB8888 premultiplied"
default y
config LV_DRAW_SW_SUPPORT_L8
bool "L8"
default y
config LV_DRAW_SW_SUPPORT_AL88
bool "AL88"
default y
config LV_DRAW_SW_SUPPORT_A8
bool "A8"
default y
config LV_DRAW_SW_SUPPORT_I1
bool "I1"
default y
config LV_DRAW_SW_I1_LUM_THRESHOLD
int "I1 luminance threshold"
default 127
range 0 254
depends on LV_DRAW_SW_SUPPORT_I1
help
Pixels brighter than this luminance become active (set) when rendering to I1.
endmenu
config LV_DRAW_SW_DRAW_UNIT_CNT
int "Number of draw units"
default 1
range 1 255
depends on !LV_OS_NONE
help
Number of threads used to render a frame in parallel
config LV_USE_DRAW_ARM2D_SYNC
bool "Arm-2D acceleration (Cortex-M)"
default n
help
Requires the Arm-2D library in your project and an include path for "arm_2d.h".
config LV_USE_NATIVE_HELIUM_ASM
bool "Native Helium assembly"
default n
help
Disable to let Arm-2D work on its own (for testing only).
config LV_DRAW_SW_COMPLEX
bool "Complex draw engine"
default y
help
Adds rounded corners, shadows, skewed lines and arcs.
Without it only rectangles with gradients, images, texts and straight lines can be drawn.
config LV_GRADIENT_MAX_STOPS
int "Maximum gradient stops"
default 2
help
Each additional stop costs (sizeof(lv_color_t) + 1) bytes.
config LV_USE_DRAW_SW_COMPLEX_GRADIENTS
bool "Complex gradients"
default n
help
Adds linear gradients at an angle, plus radial and conical gradients.
config LV_DRAW_SW_SHADOW_CACHE_SIZE
int "Shadow cache size"
depends on LV_DRAW_SW_COMPLEX
default 0
help
Maximum shadow size to buffer, where shadow size is `shadow_width + radius`.
Costs this value squared in RAM; 0 disables caching.
config LV_DRAW_SW_CIRCLE_CACHE_SIZE
int "Circle cache size"
depends on LV_DRAW_SW_COMPLEX
default 4
help
The circumference of a 1/4 circle is cached for anti-aliasing, costing
radius * 4 bytes per circle. Set to 0 to disable caching.
choice LV_USE_DRAW_SW_ASM
prompt "SW assembly optimization"
default LV_DRAW_SW_ASM_NONE
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_SVE2
bool "4: SVE2"
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 4 if LV_DRAW_SW_ASM_SVE2
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 "Custom assembly include file"
default ""
depends on LV_DRAW_SW_ASM_CUSTOM
endif #LV_USE_DRAW_SW
endmenu
menu "VG-Lite"
config LV_USE_DRAW_VG_LITE
bool "VG-Lite renderer"
default n
select LV_USE_MATRIX
select LV_DRAW_HAS_VECTOR_SUPPORT
help
Renders with a VG-Lite GPU. Requires a VG-Lite driver, or the VG-Lite simulator below.
if LV_USE_DRAW_VG_LITE
config LV_VG_LITE_USE_GPU_INIT
bool "Custom external gpu_init() function"
default n
help
Call an application-provided gpu_init() before the first use of the GPU.
config LV_VG_LITE_USE_ASSERT
bool "Assertions"
default n
help
Check internal VG-Lite state with LV_ASSERT(). Useful while debugging.
config LV_VG_LITE_FLUSH_MAX_COUNT
int "Flush trigger threshold (draw tasks)"
default 8
help
The GPU tries to batch this many draw tasks before flushing.
config LV_VG_LITE_USE_BOX_SHADOW
bool "Simulate box shadow with a border"
default y
help
Usually faster, but does not match the rendering quality of the SW renderer.
config LV_VG_LITE_GRAD_CACHE_CNT
int "Gradient cache size (entries)"
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 "Stroke cache size (entries)"
default 32
config LV_VG_LITE_BITMAP_FONT_CACHE_CNT
int "Unaligned bitmap font cache size (entries)"
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"
default n
help
Needed with older VG-Lite drivers that do not implement the extension.
config LV_VG_LITE_DISABLE_BLIT_RECT_OFFSET
bool "Disable blit rectangle offset"
default n
help
Works around HW errors on some GPUs at the cost of extra blits.
config LV_VG_LITE_PATH_DUMP_MAX_LEN
int "Maximum path dump length (points)"
default 1000
config LV_USE_VG_LITE_DRIVER
bool "Built-in VG-Lite driver"
default n
help
Build the VG-Lite driver bundled with LVGL instead of linking a vendor-provided one.
if LV_USE_VG_LITE_DRIVER
# A choice because the include path needs unquoted tokens, which Kconfig
# strings cannot emit.
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 "GPU base address"
default 0x40240000
endif #LV_USE_VG_LITE_DRIVER
config LV_USE_VG_LITE_THORVG
bool "VG-Lite simulator (ThorVG)"
default n
select LV_USE_THORVG
help
Simulate VG-Lite hardware with ThorVG for debugging and testing on a PC simulator.
Requires the internal or an external ThorVG library.
if LV_USE_VG_LITE_THORVG
config LV_VG_LITE_THORVG_LVGL_BLEND_SUPPORT
bool "LVGL blend modes"
default n
depends on LV_USE_VG_LITE_THORVG
config LV_VG_LITE_THORVG_YUV_SUPPORT
bool "YUV color formats"
default n
config LV_VG_LITE_THORVG_LINEAR_GRADIENT_EXT_SUPPORT
bool "Linear gradient extension"
default n
config LV_VG_LITE_THORVG_16PIXELS_ALIGN
bool "16 pixel alignment"
default y
config LV_VG_LITE_THORVG_BUF_ADDR_ALIGN
int "Buffer address alignment (bytes)"
default 64
config LV_VG_LITE_THORVG_THREAD_RENDER
bool "Multi-threaded rendering"
default n
endif #LV_USE_VG_LITE_THORVG
endif #LV_USE_DRAW_VG_LITE
endmenu
menu "Dave2D"
config LV_USE_DRAW_DAVE2D
bool "Dave2D renderer"
default n
help
Accelerate drawing with the Dave2D GPU found on Renesas RA platforms.
endmenu
menu "NemaGFX"
config LV_USE_NEMA_GFX
bool "NemaGFX renderer"
default n
help
Accelerate drawing with the Think Silicon (TSi) NemaGFX GPU library.
if LV_USE_NEMA_GFX
config LV_NEMA_USE_CACHE
bool "Cache maintenance"
default n
help
Clean and invalidate the CPU cache around draw buffers so the GPU sees
coherent data. Needed on cores with a data cache.
config LV_NEMA_CACHE_HAL_INCLUDE
string "Cache HAL header"
default "stm32u5xx_hal.h"
depends on LV_NEMA_USE_CACHE
choice LV_USE_NEMA_LIB
prompt "NemaGFX static library"
default LV_NEMA_LIB_NONE
help
Bundled NemaGFX library and headers to use, per target CPU core.
None warns at build time and falls back to Cortex-M33 (Rev C).
config LV_NEMA_LIB_NONE
bool "None"
config LV_NEMA_LIB_M33_REVC
bool "Cortex-M33 (Rev C)"
config LV_NEMA_LIB_M33_NEMAPVG
bool "Cortex-M33 (NemaPVG)"
config LV_NEMA_LIB_M55
bool "Cortex-M55"
config LV_NEMA_LIB_M7
bool "Cortex-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
help
STM32 uses the HAL bundled with LVGL. Custom means the application
provides the NemaGFX HAL (nema_hal.c) itself.
config LV_NEMA_HAL_CUSTOM
bool "Custom"
config LV_NEMA_HAL_STM32
bool "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 "STM32 HAL header"
default "stm32u5xx_hal.h"
depends on LV_NEMA_HAL_STM32
config LV_NEMA_USE_CUSTOM_INCLUDE
bool "Custom 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 "NemaVG vector graphics"
select LV_DRAW_HAS_VECTOR_SUPPORT
default n
help
Draw vector graphics (lv_vector_dsc) with NemaVG on top of NemaGFX.
config LV_NEMA_GFX_MAX_RESX
int "NemaVG max horizontal resolution (px)"
default 800
help
Canvas width NemaVG is initialized for. With the vertical resolution it also
sizes the NemaGFX memory pool on STM32 (RESX * RESY + 10KB).
config LV_NEMA_GFX_MAX_RESY
int "NemaVG max vertical resolution (px)"
default 600
help
Canvas height NemaVG is initialized for.
endif
endmenu
menu "PXP"
config LV_USE_PXP
bool "PXP (legacy)"
default n
select LV_USE_DRAW_PXP
help
Use LV_USE_DRAW_PXP instead.
config LV_USE_DRAW_PXP
bool "PXP renderer"
default n
help
Accelerate blends, fills and transforms with the PXP (Pixel Pipeline)
engine of NXP i.MX RT SoCs.
if LV_USE_DRAW_PXP
config LV_USE_ROTATE_PXP
bool "Display rotation"
default n
help
Rotate the rendered display buffer with the PXP instead of the CPU.
config LV_USE_PXP_DRAW_THREAD
bool "Dedicated draw thread"
depends on !LV_OS_NONE
default y
help
Dispatch PXP operations from their own thread so the CPU can keep
rendering in parallel. Needs an OS.
config LV_USE_PXP_ASSERT
bool "Asserts"
help
Check the status of every PXP call and assert on failure. Useful while
bringing up a board.
endif
endmenu
menu "PPA"
config LV_USE_PPA
bool "PPA renderer"
select LV_USE_DRAW_SW
default n
help
Accelerate blends, fills and transforms with the PPA (Pixel Processing
Accelerator) peripheral of Espressif SoCs.
if LV_USE_PPA
config LV_USE_PPA_IMG
bool "Image drawing"
default n
help
Let the PPA also draw images. Only simple cases qualify: unscaled,
unrotated, fully opaque and without masks.
choice
prompt "PPA burst length (bytes)"
default LV_PPA_BURST_LENGTH_128
help
DMA burst length used by the PPA clients.
config LV_PPA_BURST_LENGTH_8
bool "8"
config LV_PPA_BURST_LENGTH_16
bool "16"
config LV_PPA_BURST_LENGTH_32
bool "32"
config LV_PPA_BURST_LENGTH_64
bool "64"
config LV_PPA_BURST_LENGTH_128
bool "128"
endchoice
config LV_PPA_BURST_LENGTH
int
default 8 if LV_PPA_BURST_LENGTH_8
default 16 if LV_PPA_BURST_LENGTH_16
default 32 if LV_PPA_BURST_LENGTH_32
default 64 if LV_PPA_BURST_LENGTH_64
default 128 if LV_PPA_BURST_LENGTH_128
endif
endmenu
menu "DMA2D"
config LV_USE_DRAW_DMA2D
bool "DMA2D renderer"
default n
help
Accelerate blends, fills and image decoding with the STM32 DMA2D peripheral.
if LV_USE_DRAW_DMA2D
config LV_DRAW_DMA2D_HAL_INCLUDE
string "STM32 HAL header"
default "stm32h7xx_hal.h"
help
Header that declares the DMA2D HAL API of the target STM32 family.
config LV_USE_DRAW_DMA2D_INTERRUPT
bool "Transfer complete interrupt"
default n
help