mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-20 17:56:34 +00:00
LV_MEM_CUSTOM default allocators use PSram when available #810
This commit is contained in:
parent
31a1272c5e
commit
e42b27f67a
@ -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 <stdlib.h> /*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
|
||||
|
@ -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 <stdlib.h> /*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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user