Skip to content

Commit e42b27f

Browse files
author
fvanroie
committed
LV_MEM_CUSTOM default allocators use PSram when available #810
1 parent 31a1272 commit e42b27f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/lv_conf_v7.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ typedef int16_t lv_coord_t;
116116
# define LV_MEM_AUTO_DEFRAG 1
117117
#else /*LV_MEM_CUSTOM*/
118118
#define LV_MEM_CUSTOM_INCLUDE <stdlib.h> /*Header for the dynamic memory function*/
119-
#define LV_MEM_CUSTOM_ALLOC malloc /*Wrapper to malloc*/
120-
#define LV_MEM_CUSTOM_FREE free /*Wrapper to free*/
119+
#define LV_MEM_CUSTOM_ALLOC hasp_malloc /*Wrapper to malloc*/
120+
#define LV_MEM_CUSTOM_FREE hasp_free /*Wrapper to free*/
121121
#endif /*LV_MEM_CUSTOM*/
122122

123123
#ifndef LV_VDB_SIZE

include/lv_conf_v8.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ typedef int16_t lv_coord_t;
105105
# define LV_MEM_AUTO_DEFRAG 1
106106
#else /*LV_MEM_CUSTOM*/
107107
# define LV_MEM_CUSTOM_INCLUDE <stdlib.h> /*Header for the dynamic memory function*/
108-
# define LV_MEM_CUSTOM_ALLOC malloc /*Wrapper to malloc*/
109-
# define LV_MEM_CUSTOM_FREE free /*Wrapper to free*/
108+
# define LV_MEM_CUSTOM_ALLOC hasp_malloc /*Wrapper to malloc*/
109+
# define LV_MEM_CUSTOM_FREE hasp_free /*Wrapper to free*/
110110
#endif /*LV_MEM_CUSTOM*/
111111

112112
/* Use the standard memcpy and memset instead of LVGL's own functions.

0 commit comments

Comments
 (0)