MEM1_MAX_SIZE 10*1024: 如果你的开发板有外部ram,可以在lv_conf.h文件找到LV_MEM_ADR,这个宏定义默认为0,我们可以定义在外部ram的地址,例如正点原子的战舰开发板的外部ram为0X68000000,所以LV_MEM_ADR0X68000000 以上文章摘自:开源电子网 更多技术分享 ...
如果编译报错,可能是 SRAM 的空间不够用,我们可以把 lv_conf.h 文件中LV_MEM_SIZE宏改小。 如果触摸效果不灵敏,我们可以在 lv_conf.h 文件中有关扫描时间的宏LV_DEF_REFR_PERIOD改小。 五、FreeRTOS上移植LVGL 在裸机移植的时候,我们使用基本定时器为 LVGL 提供时基,而当有了系统之...
E.g. my_malloc*/ 57 #if LV_MEM_ADR == 0 58 #undef LV_MEM_POOL_INCLUDE 59 #undef LV_MEM_POOL_ALLOC 60 #endif 61 62 #else /*LV_MEM_CUSTOM*/ 63 #define LV_MEM_CUSTOM_INCLUDE <stdlib.h> /*Header for the dynamic memory function*/ 64 #define LV_MEM_CUSTOM_ALLOC malloc 65 #...
define lv_mem_size (10 * 1024u * 1024u) /*[bytes]*/ 53 54 /*set an address for the memory pool instead of allocating it as a normal array. can be in external sram too.*/ 55 # define lv_mem_adr 0 /*0: unused*/ 56 /*in...
将Size 改成 64K,然后将 LV_MEM_ATTR 修改为 CCMRAM,内存起始地址 LV_MEM_ADR 修改为 0x10000000 在任务中添加一个测试指针,在使用 lvgl 分配一段动态内存: 然后仿真,看一下这个内存测试指针的地址,可以看到这段动态内存指向了 0x10000d44 的地址空间,该空间位于 CCMRAM 上...
#defineLV_MEM_ADR 0 /*0: unused*//*Instead of an address give a memory allocator that will be called to get a memory pool for LVGL. E.g. my_malloc*/#ifLV_MEM_ADR == 0#undefLV_MEM_POOL_INCLUDE#undefLV_MEM_POOL_ALLOC#endif#else/*LV_MEM_CUSTOM*/#defineLV_MEM_CUSTOM_...
#define LV_MEM_POOL_EXPAND_SIZE 0 /** Set an address for the memory pool instead of allocating it as a normal array. Can be in external SRAM too. */ #define LV_MEM_ADR 0 /**< 0: unused*/ /* Instead of an address give a memory allocator that will be called to get a memory...
#defineLV_MEM_ADR 0 /*0: unused*//*Instead of an address give a memory allocator that will be called to get a memory pool for LVGL. E.g. my_malloc*/#ifLV_MEM_ADR == 0#undefLV_MEM_POOL_INCLUDE#undefLV_MEM_POOL_ALLOC#endif#else/*LV_MEM_CUSTOM*/#defineLV_MEM_CUSTOM_INCLUDE /...
LV_MEM_ADR 0 /*0: unused*/56 /*Instead of an address give a memory allocator that will be called to get a memory pool for LVGL. E.g. my_malloc*/57 #if LV_MEM_ADR == 058 #undef LV_MEM_POOL_INCLUDE59 #undef LV_MEM_POOL_ALLOC60 #endif6162 #else /*LV_MEM_CUSTOM*/63 #...
widgets DEMO至少需要38KB#define LV_MEM_ADR 0x1FFF1000配置lv_mem地址从0x1FFF1000,这是LV管理...