From e42b27f67aae765e1b7edd2a0ef375d33f8775f0 Mon Sep 17 00:00:00 2001 From: fvanroie Date: Tue, 8 Oct 2024 22:35:01 +0200 Subject: [PATCH] LV_MEM_CUSTOM default allocators use PSram when available #810 --- include/lv_conf_v7.h | 4 ++-- include/lv_conf_v8.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/lv_conf_v7.h b/include/lv_conf_v7.h index 606203cc4..20ad29667 100644 --- a/include/lv_conf_v7.h +++ b/include/lv_conf_v7.h @@ -116,8 +116,8 @@ typedef int16_t lv_coord_t; # define LV_MEM_AUTO_DEFRAG 1 #else /*LV_MEM_CUSTOM*/ #define LV_MEM_CUSTOM_INCLUDE /*Header for the dynamic memory function*/ -#define LV_MEM_CUSTOM_ALLOC malloc /*Wrapper to malloc*/ -#define LV_MEM_CUSTOM_FREE free /*Wrapper to free*/ +#define LV_MEM_CUSTOM_ALLOC hasp_malloc /*Wrapper to malloc*/ +#define LV_MEM_CUSTOM_FREE hasp_free /*Wrapper to free*/ #endif /*LV_MEM_CUSTOM*/ #ifndef LV_VDB_SIZE diff --git a/include/lv_conf_v8.h b/include/lv_conf_v8.h index 494982d79..78bfb3edd 100644 --- a/include/lv_conf_v8.h +++ b/include/lv_conf_v8.h @@ -105,8 +105,8 @@ typedef int16_t lv_coord_t; # define LV_MEM_AUTO_DEFRAG 1 #else /*LV_MEM_CUSTOM*/ # define LV_MEM_CUSTOM_INCLUDE /*Header for the dynamic memory function*/ -# define LV_MEM_CUSTOM_ALLOC malloc /*Wrapper to malloc*/ -# define LV_MEM_CUSTOM_FREE free /*Wrapper to free*/ +# define LV_MEM_CUSTOM_ALLOC hasp_malloc /*Wrapper to malloc*/ +# define LV_MEM_CUSTOM_FREE hasp_free /*Wrapper to free*/ #endif /*LV_MEM_CUSTOM*/ /* Use the standard memcpy and memset instead of LVGL's own functions.