-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlv_conf_template.h
More file actions
2492 lines (1856 loc) · 68.2 KB
/
Copy pathlv_conf_template.h
File metadata and controls
2492 lines (1856 loc) · 68.2 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
/**
* @file lv_conf.h
* Configuration file for v9.6.0
*/
/*
* Copy this file as `lv_conf.h`
* 1. simply next to `lvgl` folder
* 2. or to any other place and
* - define `LV_CONF_INCLUDE_SIMPLE`;
* - add the path as an include path.
*/
/* clang-format off */
#if 0 /* Set this to "1" to enable content */
#ifndef LV_CONF_H
#define LV_CONF_H
/* If you need to include anything here, do it inside the `__ASSEMBLY__` guard */
#if 0 && defined(__ASSEMBLY__)
#include "my_include.h"
#endif
/*============================================================================
* MEMORY AND STANDARD LIBRARY
*============================================================================*/
/** Malloc functions source
* Possible values:
* - LV_STDLIB_BUILTIN: LVGL's built in implementation
* - LV_STDLIB_CLIB: Standard C functions malloc/realloc/free
* - LV_STDLIB_MICROPYTHON: MicroPython functions malloc/realloc/free
* - LV_STDLIB_RTTHREAD: RT-Thread functions malloc/realloc/free
* - LV_STDLIB_CUSTOM: Implement the functions externally
*/
#define LV_USE_STDLIB_MALLOC LV_STDLIB_BUILTIN
/** String functions source
* Possible values:
* - LV_STDLIB_BUILTIN: LVGL's built in implementation
* - LV_STDLIB_CLIB: Standard C functions memcpy/memset/strlen/strcpy
* - LV_STDLIB_RTTHREAD: RT-Thread functions rt_memcpy/rt_memset/rt_strlen/rt_strcpy
* - LV_STDLIB_CUSTOM: Implement the functions externally
*/
#define LV_USE_STDLIB_STRING LV_STDLIB_BUILTIN
/** Sprintf functions source
* Possible values:
* - LV_STDLIB_BUILTIN: LVGL's built in implementation
* - LV_STDLIB_CLIB: Standard C function vsnprintf
* - LV_STDLIB_RTTHREAD: RT-Thread function rt_vsnprintf
* - LV_STDLIB_CUSTOM: Implement the functions externally
*/
#define LV_USE_STDLIB_SPRINTF LV_STDLIB_BUILTIN
#if LV_USE_STDLIB_MALLOC == LV_STDLIB_BUILTIN
/** Memory size in bytes (Needs to be at least 2kB (2048)) */
#define LV_MEM_SIZE 65536
/** Address for the memory pool instead of allocating it as a normal array. 0: unused */
#define LV_MEM_ADR 0x0
#endif /*LV_USE_STDLIB_MALLOC == LV_STDLIB_BUILTIN*/
/** Header for integer types (stdint) */
#define LV_STDINT_INCLUDE "stdint.h"
/** Header for standard definitions (stddef) */
#define LV_STDDEF_INCLUDE "stddef.h"
/** Header for boolean types (stdbool) */
#define LV_STDBOOL_INCLUDE "stdbool.h"
/** Header for fixed-width integer format macros (inttypes) */
#define LV_INTTYPES_INCLUDE "inttypes.h"
/** Header for implementation limits (limits) */
#define LV_LIMITS_INCLUDE "limits.h"
/** Header for variadic argument handling (stdarg) */
#define LV_STDARG_INCLUDE "stdarg.h"
/*============================================================================
* OPERATING SYSTEM (OS)
*============================================================================*/
/** Default operating system to use
* Possible values:
* - LV_OS_NONE
* - LV_OS_PTHREAD
* - LV_OS_FREERTOS
* - LV_OS_CMSIS_RTOS2
* - LV_OS_RTTHREAD
* - LV_OS_WINDOWS
* - LV_OS_MQX
* - LV_OS_SDL2
* - LV_OS_CUSTOM
*/
#define LV_USE_OS LV_OS_NONE
#if LV_USE_OS == LV_OS_CUSTOM
/** Custom OS include header */
#define LV_OS_CUSTOM_INCLUDE ""
#endif /*LV_USE_OS == LV_OS_CUSTOM*/
#if LV_USE_OS == LV_OS_FREERTOS
/** 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.
*/
#define LV_USE_FREERTOS_TASK_NOTIFY 1
/** 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.
*/
#define LV_OS_IDLE_PERCENT_CUSTOM 0
#endif /*LV_USE_OS == LV_OS_FREERTOS*/
/*============================================================================
* RENDERING CONFIGURATION
*============================================================================*/
/** Color depth: 1 (I1), 8 (L8), 16 (RGB565), 24 (RGB888), 32 (XRGB8888) */
#define LV_COLOR_DEPTH 16
/** 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
*/
#define LV_COLOR_MIX_ROUND_OFS 0
/** Default display refresh, input device read and animation step period. */
#define LV_DEF_REFR_PERIOD 33
/** 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)
*/
#define LV_DPI_DEF 130
/** Align the stride of all layers and images to this many bytes. */
#define LV_DRAW_BUF_STRIDE_ALIGN 1
/** Align the start address of draw_buf addresses to this many bytes. */
#define LV_DRAW_BUF_ALIGN 4
/** Enable matrix support
*
* Enable: LV_USE_FLOAT
*/
#define LV_USE_MATRIX 0
#if LV_USE_MATRIX
/** Requirements: The rendering engine needs to support 3x3 matrix transformations. */
#define LV_DRAW_TRANSFORM_USE_MATRIX 0
#endif /*LV_USE_MATRIX*/
/** 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.
*/
#define LV_DRAW_LAYER_SIMPLE_BUF_SIZE 24576
/** 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.
*/
#define LV_DRAW_LAYER_MAX_MEMORY 0
#if LV_USE_OS != LV_OS_NONE
/** If FreeType or ThorVG is enabled, it is recommended to set it to 32KB or more. */
#define LV_DRAW_THREAD_STACK_SIZE 8192
/** 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.
*/
#define LV_DRAW_THREAD_PRIO 3
#endif /*LV_USE_OS != LV_OS_NONE*/
/** Enable drawing support vector graphic APIs.
*
* Enable: LV_USE_MATRIX
*/
#define LV_USE_VECTOR_GRAPHIC 0
/** Enable API to take snapshot for object */
#define LV_USE_SNAPSHOT 0
/** ThorVG library for vector graphics support */
#define LV_USE_THORVG 0
#if LV_USE_THORVG
/** Internal ThorVG library bundled with LVGL */
#define LV_USE_THORVG_INTERNAL 1
#endif /*LV_USE_THORVG*/
/** Required to draw anything on the screen. */
#define LV_USE_DRAW_SW 1
#if LV_USE_DRAW_SW
/** Enable support for RGB565 color format */
#define LV_DRAW_SW_SUPPORT_RGB565 1
/** Enable support for RGB565 swapped color format */
#define LV_DRAW_SW_SUPPORT_RGB565_SWAPPED 1
/** Enable support for RGB565A8 color format */
#define LV_DRAW_SW_SUPPORT_RGB565A8 1
/** Enable support for RGB888 color format */
#define LV_DRAW_SW_SUPPORT_RGB888 1
/** Enable support for XRGB8888 color format */
#define LV_DRAW_SW_SUPPORT_XRGB8888 1
/** Enable support for ARGB8888 color format */
#define LV_DRAW_SW_SUPPORT_ARGB8888 1
/** Enable support for ARGB8888 premultiplied color format */
#define LV_DRAW_SW_SUPPORT_ARGB8888_PREMULTIPLIED 1
/** Enable support for L8 color format */
#define LV_DRAW_SW_SUPPORT_L8 1
/** Enable support for AL88 color format */
#define LV_DRAW_SW_SUPPORT_AL88 1
/** Enable support for A8 color format */
#define LV_DRAW_SW_SUPPORT_A8 1
/** Enable support for I1 color format */
#define LV_DRAW_SW_SUPPORT_I1 1
#if LV_DRAW_SW_SUPPORT_I1
/** Luminance threshold for a pixel to be active */
#define LV_DRAW_SW_I1_LUM_THRESHOLD 127
#endif /*LV_DRAW_SW_SUPPORT_I1*/
#if LV_USE_OS != LV_OS_NONE
/** Number of threads used to render a frame in parallel */
#define LV_DRAW_SW_DRAW_UNIT_CNT 1
#endif /*LV_USE_OS != LV_OS_NONE*/
/** Must deploy arm-2d library to your project and add include PATH for "arm_2d.h". */
#define LV_USE_DRAW_ARM2D_SYNC 0
/** Disabling this allows arm2d to work on its own (for testing only) */
#define LV_USE_NATIVE_HELIUM_ASM 0
/** 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.
*/
#define LV_DRAW_SW_COMPLEX 1
/** Increase this to allow more stops.
* This adds (sizeof(lv_color_t) + 1) bytes per additional stop
*/
#define LV_GRADIENT_MAX_STOPS 2
/** 0: do not enable complex gradients
* 1: enable complex gradients (linear at an angle, radial or conical)
*/
#define LV_USE_DRAW_SW_COMPLEX_GRADIENTS 0
#if LV_DRAW_SW_COMPLEX
/** 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.
*/
#define LV_DRAW_SW_SHADOW_CACHE_SIZE 0
/** 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.
*/
#define LV_DRAW_SW_CIRCLE_CACHE_SIZE 4
#endif /*LV_DRAW_SW_COMPLEX*/
/** ASM mode to be used
* Possible values:
* - LV_DRAW_SW_ASM_NONE
* - LV_DRAW_SW_ASM_NEON
* - LV_DRAW_SW_ASM_HELIUM
* - LV_DRAW_SW_ASM_RISCV_V: RISC-V Vector
* - LV_DRAW_SW_ASM_CUSTOM
*/
#define LV_USE_DRAW_SW_ASM LV_DRAW_SW_ASM_NONE
#if LV_USE_DRAW_SW_ASM == LV_DRAW_SW_ASM_CUSTOM
/** Set the custom asm include file */
#define LV_DRAW_SW_ASM_CUSTOM_INCLUDE ""
#endif /*LV_USE_DRAW_SW_ASM == LV_DRAW_SW_ASM_CUSTOM*/
#endif /*LV_USE_DRAW_SW*/
/** Use VG-Lite GPU.
*
* Enable: LV_USE_MATRIX
*/
#define LV_USE_DRAW_VG_LITE 0
#if LV_USE_DRAW_VG_LITE
/** Enable VG-Lite custom external 'gpu_init()' function */
#define LV_VG_LITE_USE_GPU_INIT 0
/** Enable VG-Lite assert */
#define LV_VG_LITE_USE_ASSERT 0
/** GPU will try to batch these many draw tasks */
#define LV_VG_LITE_FLUSH_MAX_COUNT 8
/** which usually improves performance,
* but does not guarantee the same rendering quality as the software.
*/
#define LV_VG_LITE_USE_BOX_SHADOW 1
/** The memory usage of a single gradient:
* linear: 4K bytes.
* radial: radius * 4K bytes.
*/
#define LV_VG_LITE_GRAD_CACHE_CNT 32
/** VG-Lite stroke maximum cache number */
#define LV_VG_LITE_STROKE_CACHE_CNT 32
/** VG-Lite unaligned bitmap font maximum cache number */
#define LV_VG_LITE_BITMAP_FONT_CACHE_CNT 256
/** Remove VLC_OP_CLOSE path instruction (Workaround for NXP) */
#define LV_VG_LITE_DISABLE_VLC_OP_CLOSE 0
/** Disable linear gradient extension for some older versions of drivers */
#define LV_VG_LITE_DISABLE_LINEAR_GRADIENT_EXT 0
/** Disable blit rectangular offset to resolve certain hardware errors */
#define LV_VG_LITE_DISABLE_BLIT_RECT_OFFSET 0
/** Maximum path dump print length (in points) */
#define LV_VG_LITE_PATH_DUMP_MAX_LEN 1000
/** Use LVGL's built-in vg_lite driver */
#define LV_USE_VG_LITE_DRIVER 0
#if LV_USE_VG_LITE_DRIVER
/** VG-Lite GPU (series and revision)
* Possible values:
* - LV_VG_LITE_GPU_GC255_0X40A: GC255 (revision 0x40A)
* - LV_VG_LITE_GPU_GC355_0X0_1215: GC355 (revision 0x0_1215)
* - LV_VG_LITE_GPU_GC355_0X0_1216: GC355 (revision 0x0_1216)
* - LV_VG_LITE_GPU_GC555_0X423: GC555 (revision 0x423)
* - LV_VG_LITE_GPU_GC555_0X423_ECO: GC555 (revision 0x423 ECO)
* - LV_VG_LITE_GPU_GCNANOULTRAV_0X1003: GCNanoUltraV (revision 0x1003)
*/
#define LV_VG_LITE_GPU LV_VG_LITE_GPU_GC255_0X40A
/** VG-Lite GPU base address */
#define LV_VG_LITE_HAL_GPU_BASE_ADDRESS 0x40240000
#endif /*LV_USE_VG_LITE_DRIVER*/
/** 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.
*
* Enable: LV_USE_THORVG
*/
#define LV_USE_VG_LITE_THORVG 0
#if LV_USE_VG_LITE_THORVG
/** Enable LVGL blend mode support */
#define LV_VG_LITE_THORVG_LVGL_BLEND_SUPPORT 0
/** Enable YUV color format support */
#define LV_VG_LITE_THORVG_YUV_SUPPORT 0
/** Enable linear gradient extension support */
#define LV_VG_LITE_THORVG_LINEAR_GRADIENT_EXT_SUPPORT 0
/** Enable 16 pixels alignment */
#define LV_VG_LITE_THORVG_16PIXELS_ALIGN 1
/** Buffer address alignment */
#define LV_VG_LITE_THORVG_BUF_ADDR_ALIGN 64
/** Enable multi-thread render */
#define LV_VG_LITE_THORVG_THREAD_RENDER 0
#endif /*LV_USE_VG_LITE_THORVG*/
#endif /*LV_USE_DRAW_VG_LITE*/
/** Use Renesas Dave2D on RA platforms. */
#define LV_USE_DRAW_DAVE2D 0
/** Use TSi's aka (Think Silicon) NemaGFX */
#define LV_USE_NEMA_GFX 0
#if LV_USE_NEMA_GFX
/** Cache handling of NemaGFX */
#define LV_NEMA_USE_CACHE 0
#if LV_NEMA_USE_CACHE
/** NemaGFX Cache HAL include */
#define LV_NEMA_CACHE_HAL_INCLUDE "stm32u5xx_hal.h"
#endif /*LV_NEMA_USE_CACHE*/
/** NemaGFX static library
* Possible values:
* - LV_NEMA_LIB_NONE
* - LV_NEMA_LIB_M33_REVC
* - LV_NEMA_LIB_M33_NEMAPVG
* - LV_NEMA_LIB_M55
* - LV_NEMA_LIB_M7
*/
#define LV_USE_NEMA_LIB LV_NEMA_LIB_NONE
/** NemaGFX HAL
* Possible values:
* - LV_NEMA_HAL_CUSTOM
* - LV_NEMA_HAL_STM32
*/
#define LV_USE_NEMA_HAL LV_NEMA_HAL_CUSTOM
#if LV_USE_NEMA_HAL == LV_NEMA_HAL_STM32
/** NemaGFX STM32 HAL include */
#define LV_NEMA_STM32_HAL_INCLUDE "stm32u5xx_hal.h"
/** 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.
*/
#define LV_NEMA_USE_CUSTOM_INCLUDE 0
#endif /*LV_USE_NEMA_HAL == LV_NEMA_HAL_STM32*/
#if LV_NEMA_USE_CUSTOM_INCLUDE
/** 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")))
*/
#define LV_NEMA_CUSTOM_INCLUDE ""
#endif /*LV_NEMA_USE_CUSTOM_INCLUDE*/
/** Enable NemaVG operations */
#define LV_USE_NEMA_VG 0
/** NemaVG max horizontal resolution */
#define LV_NEMA_GFX_MAX_RESX 800
/** NemaVG max vertical resolution */
#define LV_NEMA_GFX_MAX_RESY 600
#endif /*LV_USE_NEMA_GFX*/
/** Use PXP for drawing */
#define LV_USE_DRAW_PXP 0
#if LV_USE_DRAW_PXP
/** Use PXP to rotate the display */
#define LV_USE_ROTATE_PXP 0
#if LV_USE_OS != LV_OS_NONE
/** Use additional draw thread for PXP processing */
#define LV_USE_PXP_DRAW_THREAD 1
#endif /*LV_USE_OS != LV_OS_NONE*/
/** Enable PXP asserts */
#define LV_USE_PXP_ASSERT 0
#endif /*LV_USE_DRAW_PXP*/
/** Draw using Espressif PPA accelerator */
#define LV_USE_PPA 0
#if LV_USE_PPA
/** Use Espressif's PPA accelerator for Image draw */
#define LV_USE_PPA_IMG 0
/** PPA burst length size in bytes. */
#define LV_PPA_BURST_LENGTH 128
#endif /*LV_USE_PPA*/
/** Accelerate blends, fills, image decoding, etc. with STM32 DMA2D. */
#define LV_USE_DRAW_DMA2D 0
#if LV_USE_DRAW_DMA2D
/** the header file for LVGL to include for DMA2D */
#define LV_DRAW_DMA2D_HAL_INCLUDE "stm32h7xx_hal.h"
/** if enabled, the user is required to call
* `lv_draw_dma2d_transfer_complete_interrupt_handler`
* upon receiving the DMA2D global interrupt
*/
#define LV_USE_DRAW_DMA2D_INTERRUPT 0
#endif /*LV_USE_DRAW_DMA2D*/
/** Use EVE FT81X GPU. */
#define LV_USE_DRAW_EVE 0
#if LV_USE_DRAW_EVE
/** EVE_GEN value */
#define LV_DRAW_EVE_EVE_GENERATION 4
/** Max bytes to buffer for each SPI transmission or 0 to disable buffering */
#define LV_DRAW_EVE_WRITE_BUFFER_SIZE 2048
#endif /*LV_USE_DRAW_EVE*/
/** Use G2D for drawing */
#define LV_USE_DRAW_G2D 0
#if LV_USE_DRAW_G2D
/** Includes the frame buffers and assets. */
#define LV_G2D_HASH_TABLE_SIZE 50
#if LV_USE_OS != LV_OS_NONE
/** Use additional draw thread for G2D processing */
#define LV_USE_G2D_DRAW_THREAD 1
#endif /*LV_USE_OS != LV_OS_NONE*/
/** Enable G2D asserts */
#define LV_USE_G2D_ASSERT 0
#endif /*LV_USE_DRAW_G2D*/
/** Use NanoVG Renderer
*
* Enable: LV_USE_NANOVG, LV_USE_MATRIX
*/
#define LV_USE_DRAW_NANOVG 0
#if LV_USE_DRAW_NANOVG
/** Select which OpenGL implementation to use for NanoVG rendering.
* Possible values:
* - LV_NANOVG_BACKEND_GL2: OpenGL 2.0
* - LV_NANOVG_BACKEND_GL3: OpenGL 3.0+
* - LV_NANOVG_BACKEND_GLES2: OpenGL ES 2.0
* - LV_NANOVG_BACKEND_GLES3: OpenGL ES 3.0+
*/
#define LV_NANOVG_BACKEND LV_NANOVG_BACKEND_GLES2
/** Draw image texture cache count */
#define LV_NANOVG_IMAGE_CACHE_CNT 128
/** Draw letter cache count */
#define LV_NANOVG_LETTER_CACHE_CNT 512
#endif /*LV_USE_DRAW_NANOVG*/
/** Draw using cached OpenGLES textures.
*
* Enable: LV_USE_OPENGLES
*/
#define LV_USE_DRAW_OPENGLES 0
#if LV_USE_DRAW_OPENGLES
/** OpenGLES texture cache count */
#define LV_DRAW_OPENGLES_TEXTURE_CACHE_COUNT 64
#endif /*LV_USE_DRAW_OPENGLES*/
/** Uses SDL renderer API */
#define LV_USE_DRAW_SDL 0
/*============================================================================
* INPUT DEVICES
*============================================================================*/
/** Enable grid navigation */
#define LV_USE_GRIDNAV 0
/** Enable the multi-touch gesture recognition feature
* Gesture recognition requires the use of floats
*
* Enable: LV_USE_FLOAT
*/
#define LV_USE_GESTURE_RECOGNITION 0
/*============================================================================
* CORE
*============================================================================*/
/** Add 2 x 32 bit variables to each lv_obj_t to speed up getting style properties */
#define LV_OBJ_STYLE_CACHE 0
/** Enable support for widget names */
#define LV_USE_OBJ_NAME 0
/** Add `id` field to `lv_obj_t` */
#define LV_USE_OBJ_ID 0
#if LV_USE_OBJ_ID
/** Automatically assign an ID when obj is created */
#define LV_OBJ_ID_AUTO_ASSIGN 1
/** Use builtin obj ID handler functions:
* - lv_obj_assign_id: Called when a widget is created. Use a separate counter for each widget class as an ID.
* - lv_obj_id_compare: Compare the ID to decide if it matches with a requested value.
* - lv_obj_stringify_id: Return string-ified identifier, e.g. "button3".
* - lv_obj_free_id: Does nothing, as there is no memory allocation for the ID.
* When disabled these functions needs to be implemented by the user.
*/
#define LV_USE_OBJ_ID_BUILTIN 1
#endif /*LV_USE_OBJ_ID*/
/** Use obj property set/get API. */
#define LV_USE_OBJ_PROPERTY 0
#if LV_USE_OBJ_PROPERTY
/** Add a name table to every widget class, so the property can be accessed by name.
* Note, the const table will increase flash usage.
*/
#define LV_USE_OBJ_PROPERTY_NAME 1
#endif /*LV_USE_OBJ_PROPERTY*/
/** Enable this option to activate external data and destructor functionality,
* which assists in resource cleanup when objects are freed by either LVGL core
* or applications. Currently supported features include:
* - event
* - object
* - observer
* - anim
* - timer
* - group
* - display
* - indev (input device)
* - theme
*/
#define LV_USE_EXT_DATA 0
/** Use `float` as `lv_value_precise_t` */
#define LV_USE_FLOAT 0
/** Enable an observer pattern implementation */
#define LV_USE_OBSERVER 1
/** Enable text translation support */
#define LV_USE_TRANSLATION 0
/** Enable color filter style */
#define LV_USE_COLOR_FILTER 0
/*============================================================================
* LOGGING
*============================================================================*/
/** Enable log module */
#define LV_USE_LOG 0
#if LV_USE_LOG
/** Specify how important log should be added.
* Possible values:
* - LV_LOG_LEVEL_TRACE: A lot of logs to give detailed information
* - LV_LOG_LEVEL_INFO: Log important events
* - LV_LOG_LEVEL_WARN: Log if something unwanted happened but didn't cause a problem
* - LV_LOG_LEVEL_ERROR: Only critical issues, when the system may fail
* - LV_LOG_LEVEL_USER: Only logs added by the user
* - LV_LOG_LEVEL_NONE: Do not log anything
*/
#define LV_LOG_LEVEL LV_LOG_LEVEL_WARN
/** Use printf for log output.
* If not set the user needs to register a callback with `lv_log_register_print_cb`.
*/
#define LV_LOG_PRINTF 0
/** Enable print timestamp */
#define LV_LOG_USE_TIMESTAMP 1
/** Enable print file and line number */
#define LV_LOG_USE_FILE_LINE 1
/** Enable/Disable LV_LOG_TRACE in mem module */
#define LV_LOG_TRACE_MEM 1
/** Enable/Disable LV_LOG_TRACE in timer module */
#define LV_LOG_TRACE_TIMER 1
/** Enable/Disable LV_LOG_TRACE in indev module */
#define LV_LOG_TRACE_INDEV 1
/** Enable/Disable LV_LOG_TRACE in disp refr module */
#define LV_LOG_TRACE_DISP_REFR 1
/** Enable/Disable LV_LOG_TRACE in event module */
#define LV_LOG_TRACE_EVENT 1
/** Enable/Disable LV_LOG_TRACE in obj create module */
#define LV_LOG_TRACE_OBJ_CREATE 1
/** Enable/Disable LV_LOG_TRACE in layout module */
#define LV_LOG_TRACE_LAYOUT 1
/** Enable/Disable LV_LOG_TRACE in anim module */
#define LV_LOG_TRACE_ANIM 1
/** Enable/Disable LV_LOG_TRACE in cache module */
#define LV_LOG_TRACE_CACHE 1
#endif /*LV_USE_LOG*/
/*============================================================================
* THEMES
*============================================================================*/
/** A simple, impressive and very complete theme */
#define LV_USE_THEME_DEFAULT 1
#if LV_USE_THEME_DEFAULT
/** Yes to set dark mode, No to set light mode */
#define LV_THEME_DEFAULT_DARK 0
/** Enable grow on press */
#define LV_THEME_DEFAULT_GROW 1
/** Default transition time in [ms] */
#define LV_THEME_DEFAULT_TRANSITION_TIME 80
#endif /*LV_USE_THEME_DEFAULT*/
/** A very simple theme that is a good starting point for a custom theme */
#define LV_USE_THEME_SIMPLE 1
/** A theme designed for monochrome displays */
#define LV_USE_THEME_MONO 1
/*============================================================================
* LAYOUTS
*============================================================================*/
/** A layout similar to Flexbox in CSS. */
#define LV_USE_FLEX 1
/** A layout similar to Grid in CSS. */
#define LV_USE_GRID 1
/*============================================================================
* IMAGE SETTINGS
*============================================================================*/
/** When using only built-in image formats, caching provides little benefit.
* For complex image decoders (e.g. PNG or JPG), caching avoids repeatedly
* opening and decoding the same images, at the cost of additional RAM usage.
*/
#define LV_CACHE_DEF_SIZE 0
/** When using only built-in image formats, caching provides little benefit.
* For complex image decoders (e.g. PNG or JPG), caching avoids repeatedly
* reading image headers, at the cost of additional RAM usage.
*/
#define LV_IMAGE_HEADER_CACHE_DEF_CNT 0
/** RLE decompress library */
#define LV_USE_RLE 0
/** Enable LZ4 compress/decompress lib */
#define LV_USE_LZ4 0
#if LV_USE_LZ4
/** Use lvgl built-in LZ4 lib */
#define LV_USE_LZ4_INTERNAL 1
#endif /*LV_USE_LZ4*/
/** Decode bin images to RAM */
#define LV_BIN_DECODER_RAM_LOAD 0
/** LODEPNG decoder library */
#define LV_USE_LODEPNG 0
/** PNG decoder(libpng) library */
#define LV_USE_LIBPNG 0
/** BMP decoder library */
#define LV_USE_BMP 0
/** JPG + split JPG decoder library.
* Split JPG is a custom format optimized for embedded systems.
*/
#define LV_USE_TJPGD 0
/** libjpeg-turbo decoder library.
* - Supports complete JPEG specifications and high-performance JPEG decoding.
*/
#define LV_USE_LIBJPEG_TURBO 0
/** WebP decoder library */
#define LV_USE_LIBWEBP 0
#if LV_DRAW_HAS_VECTOR_SUPPORT
/** SVG library
*
* Enable: LV_USE_VECTOR_GRAPHIC
*/
#define LV_USE_SVG 0
#endif /*LV_DRAW_HAS_VECTOR_SUPPORT*/
#if LV_USE_SVG
/** SVG animation */
#define LV_USE_SVG_ANIMATION 0
/** Enable SVG debug logs */
#define LV_USE_SVG_DEBUG 0
#endif /*LV_USE_SVG*/
/*============================================================================
* TEXT & FONT SETTINGS
*============================================================================*/
/** Select a character encoding for strings. Your IDE or editor should have the same character encoding.
* Possible values:
* - LV_TXT_ENC_UTF8
* - LV_TXT_ENC_ASCII
*/
#define LV_TXT_ENC LV_TXT_ENC_UTF8
/** While rendering text strings, break (wrap) text on these chars. */
#define LV_TXT_BREAK_CHARS " ,.;:-_)]}"
/** If a word is at least this long, will break wherever 'prettiest'.
* To disable, set to a value <= 0.
*/
#define LV_TXT_LINE_BREAK_LONG_LEN 0
#if LV_TXT_LINE_BREAK_LONG_LEN > 0
/** Minimum number of characters in a long word to put on a line before a break. */
#define LV_TXT_LINE_BREAK_LONG_PRE_MIN_LEN 3
/** Minimum number of characters in a long word to put on a line after a break */
#define LV_TXT_LINE_BREAK_LONG_POST_MIN_LEN 3
#endif /*LV_TXT_LINE_BREAK_LONG_LEN > 0*/
/** The control character to use for signaling text recoloring */
#define LV_TXT_COLOR_CMD "#"
/** Allows mixing Left-to-Right and Right-to-Left texts.
* The direction will be processed according to the Unicode Bidirectional Algorithm:
* https://www.w3.org/International/articles/inline-bidi-markup/uba-basics
*/
#define LV_USE_BIDI 0
#if LV_USE_BIDI
/** Set the default BIDI base direction
* Possible values:
* - LV_BASE_DIR_LTR: Left-to-Right
* - LV_BASE_DIR_RTL: Right-to-Left
* - LV_BASE_DIR_AUTO: Auto detect
*/
#define LV_BIDI_BASE_DIR_DEF LV_BASE_DIR_AUTO
#endif /*LV_USE_BIDI*/
/** In these languages characters should be replaced with
* another form based on their position in the text.
*/
#define LV_USE_ARABIC_PERSIAN_CHARS 0
/** Montserrat fonts with ASCII range and some symbols using bpp = 4
* https://fonts.google.com/specimen/Montserrat
*/
#define LV_FONT_MONTSERRAT_8 0
/** Enable Montserrat 10 */
#define LV_FONT_MONTSERRAT_10 0
/** Enable Montserrat 12 */
#define LV_FONT_MONTSERRAT_12 0
/** Enable Montserrat 14 */
#define LV_FONT_MONTSERRAT_14 1
/** Enable Montserrat 16 */
#define LV_FONT_MONTSERRAT_16 0
/** Enable Montserrat 18 */
#define LV_FONT_MONTSERRAT_18 0
/** Enable Montserrat 20 */
#define LV_FONT_MONTSERRAT_20 0
/** Enable Montserrat 22 */
#define LV_FONT_MONTSERRAT_22 0
/** Enable Montserrat 24 */
#define LV_FONT_MONTSERRAT_24 0
/** Enable Montserrat 26 */
#define LV_FONT_MONTSERRAT_26 0
/** Enable Montserrat 28 */
#define LV_FONT_MONTSERRAT_28 0
/** Enable Montserrat 30 */
#define LV_FONT_MONTSERRAT_30 0
/** Enable Montserrat 32 */
#define LV_FONT_MONTSERRAT_32 0
/** Enable Montserrat 34 */
#define LV_FONT_MONTSERRAT_34 0
/** Enable Montserrat 36 */
#define LV_FONT_MONTSERRAT_36 0
/** Enable Montserrat 38 */
#define LV_FONT_MONTSERRAT_38 0
/** Enable Montserrat 40 */
#define LV_FONT_MONTSERRAT_40 0
/** Enable Montserrat 42 */
#define LV_FONT_MONTSERRAT_42 0
/** Enable Montserrat 44 */
#define LV_FONT_MONTSERRAT_44 0
/** Enable Montserrat 46 */
#define LV_FONT_MONTSERRAT_46 0
/** Enable Montserrat 48 */
#define LV_FONT_MONTSERRAT_48 0
/** Enable Montserrat 28 compressed */
#define LV_FONT_MONTSERRAT_28_COMPRESSED 0
/** Enable Dejavu 16 Persian, Hebrew, Arabic letters */
#define LV_FONT_DEJAVU_16_PERSIAN_HEBREW 0
/** Enable SourceHanSansSC 14 CJK */
#define LV_FONT_SOURCE_HAN_SANS_SC_14_CJK 0
/** Enable SourceHanSansSC 16 CJK */
#define LV_FONT_SOURCE_HAN_SANS_SC_16_CJK 0
/** Pixel perfect monospaced fonts */
#define LV_FONT_UNSCII_8 0
/** Enable UNSCII 16 (Perfect monospace font) */
#define LV_FONT_UNSCII_16 0
/** Include the header given by LV_FONT_CUSTOM_INCLUDE to declare custom
* fonts (LV_FONT_CUSTOM_DECLARE) or override font-related macros.
*/
#define LV_FONT_USE_CUSTOM_INCLUDE 0
#if LV_FONT_USE_CUSTOM_INCLUDE
/** Optional header to override font-related macros.
*
* Typical use is to declare extra fonts through LV_FONT_CUSTOM_DECLARE:
* #define LV_FONT_CUSTOM_DECLARE LV_FONT_DECLARE(my_font_24)