|
40 | 40 | /*Size of the memory available for `lv_malloc()` in bytes (>= 2kB)*/
|
41 | 41 | #define LV_MEM_SIZE (128U * 1024U) /*[bytes]*/
|
42 | 42 |
|
| 43 | + /*Size of the memory expand for `lv_malloc()` in bytes*/ |
| 44 | + #define LV_MEM_POOL_EXPAND_SIZE 0 |
| 45 | + |
43 | 46 | /*Set an address for the memory pool instead of allocating it as a normal array. Can be in external SRAM too.*/
|
44 | 47 | #define LV_MEM_ADR 0 /*0: unused*/
|
45 | 48 | /*Instead of an address give a memory allocator that will be called to get a memory pool for LVGL. E.g. my_malloc*/
|
|
59 | 62 | #endif /*LV_USE_BUILTIN_SNPRINTF*/
|
60 | 63 |
|
61 | 64 | #define LV_STDLIB_INCLUDE "include/lv_mp_mem_custom_include.h"
|
| 65 | +#define LV_STDIO_INCLUDE <stdint.h> |
| 66 | +#define LV_STRING_INCLUDE <stdint.h> |
62 | 67 | #define LV_MALLOC m_malloc
|
63 | 68 | #define LV_REALLOC m_realloc
|
64 | 69 | #define LV_FREE m_free
|
|
79 | 84 | #if LV_TICK_CUSTOM
|
80 | 85 | #define LV_TICK_CUSTOM_INCLUDE "Arduino.h" /*Header for the system time function*/
|
81 | 86 | #define LV_TICK_CUSTOM_SYS_TIME_EXPR (millis()) /*Expression evaluating to current system time in ms*/
|
| 87 | + /*If using lvgl as ESP32 component*/ |
| 88 | + // #define LV_TICK_CUSTOM_INCLUDE "esp_timer.h" |
| 89 | + // #define LV_TICK_CUSTOM_SYS_TIME_EXPR ((esp_timer_get_time() / 1000LL)) |
82 | 90 | #endif /*LV_TICK_CUSTOM*/
|
83 | 91 |
|
84 | 92 | /*Default Dot Per Inch. Used to initialize default sizes such as widgets sized, style paddings.
|
|
173 | 181 | #define LV_GPU_DMA2D_CMSIS_INCLUDE
|
174 | 182 | #endif
|
175 | 183 |
|
| 184 | +/*Use GD32 IPA GPU |
| 185 | + * This adds support for Image Processing Accelerator on GD32F450 and GD32F470 series MCUs |
| 186 | + * |
| 187 | + * NOTE: IPA on GD32F450 has a bug where the fill operation overwrites data beyond the |
| 188 | + * framebuffer. This driver works around it by saving and restoring affected memory, but |
| 189 | + * this makes it not thread-safe. GD32F470 is not affected. */ |
| 190 | +#define LV_USE_GPU_GD32_IPA 0 |
| 191 | + |
176 | 192 | /*Use NXP's PXP GPU iMX RTxxx platforms*/
|
177 | 193 | #define LV_USE_GPU_NXP_PXP 0
|
178 | 194 | #if LV_USE_GPU_NXP_PXP
|
|
231 | 247 | #define LV_LOG_TRACE_OBJ_CREATE 1
|
232 | 248 | #define LV_LOG_TRACE_LAYOUT 1
|
233 | 249 | #define LV_LOG_TRACE_ANIM 1
|
| 250 | + #define LV_LOG_TRACE_MSG 1 |
234 | 251 |
|
235 | 252 | #endif /*LV_USE_LOG*/
|
236 | 253 |
|
|
633 | 650 | #endif
|
634 | 651 |
|
635 | 652 | #if LV_USE_FREETYPE
|
636 |
| - /*Memory used by FreeType to cache characters [bytes] (-1: no caching)*/ |
637 |
| - #define LV_FREETYPE_CACHE_SIZE (16 * 1024) |
638 |
| - #if LV_FREETYPE_CACHE_SIZE >= 0 |
639 |
| - /* 1: bitmap cache use the sbit cache, 0:bitmap cache use the image cache. */ |
640 |
| - /* sbit cache:it is much more memory efficient for small bitmaps(font size < 256) */ |
641 |
| - /* if font size >= 256, must be configured as image cache */ |
642 |
| - #define LV_FREETYPE_SBIT_CACHE 0 |
643 |
| - /* Maximum number of opened FT_Face/FT_Size objects managed by this cache instance. */ |
644 |
| - /* (0:use system defaults) */ |
645 |
| - #define LV_FREETYPE_CACHE_FT_FACES 0 |
646 |
| - #define LV_FREETYPE_CACHE_FT_SIZES 0 |
647 |
| - #endif |
| 653 | + /*Memory used by FreeType to cache characters [bytes]*/ |
| 654 | + #define LV_FREETYPE_CACHE_SIZE (64 * 1024) |
| 655 | + |
| 656 | + /*Let FreeType to use LVGL memory and file porting*/ |
| 657 | + #define LV_FREETYPE_USE_LVGL_PORT 0 |
| 658 | + |
| 659 | + /* 1: bitmap cache use the sbit cache, 0:bitmap cache use the image cache. */ |
| 660 | + /* sbit cache:it is much more memory efficient for small bitmaps(font size < 256) */ |
| 661 | + /* if font size >= 256, must be configured as image cache */ |
| 662 | + #define LV_FREETYPE_SBIT_CACHE 0 |
| 663 | + |
| 664 | + /* Maximum number of opened FT_Face/FT_Size objects managed by this cache instance. */ |
| 665 | + /* (0:use system defaults) */ |
| 666 | + #define LV_FREETYPE_CACHE_FT_FACES 4 |
| 667 | + #define LV_FREETYPE_CACHE_FT_SIZES 4 |
648 | 668 | #endif
|
649 | 669 |
|
650 | 670 | /* Built-in TTF decoder */
|
651 |
| -#ifndef LV_USE_TINY_TTF |
652 |
| - #define LV_USE_TINY_TTF 1 |
653 |
| - #if LV_USE_TINY_TTF |
654 |
| - /* Enable loading TTF data from files */ |
655 |
| - #define LV_TINY_TTF_FILE_SUPPORT 1 |
656 |
| - #endif |
| 671 | +#define LV_USE_TINY_TTF 1 |
| 672 | +#if LV_USE_TINY_TTF |
| 673 | + /* Enable loading TTF data from files */ |
| 674 | + #define LV_TINY_TTF_FILE_SUPPORT 1 |
657 | 675 | #endif
|
658 | 676 |
|
659 | 677 | /*Rlottie library*/
|
|
732 | 750 | /*Quick access bar, 1:use, 0:not use*/
|
733 | 751 | /*Requires: lv_list*/
|
734 | 752 | #define LV_FILE_EXPLORER_QUICK_ACCESS 1
|
735 |
| -#endif |
| 753 | +#endif |
736 | 754 |
|
737 | 755 | /*==================
|
738 | 756 | * EXAMPLES
|
|
774 | 792 | #define LV_DEMO_MUSIC_AUTO_PLAY 0
|
775 | 793 | #endif
|
776 | 794 |
|
| 795 | +/*Flex layout demo*/ |
| 796 | +#define LV_USE_DEMO_FLEX_LAYOUT 0 |
| 797 | + |
777 | 798 | /*--END OF LV_CONF_H--*/
|
778 | 799 |
|
779 | 800 | #endif /*LV_CONF_H*/
|
|
0 commit comments