diff --git a/src/lv_conf.h b/src/lv_conf.h index 9f53b4f..67c1466 100644 --- a/src/lv_conf.h +++ b/src/lv_conf.h @@ -93,7 +93,11 @@ 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*/ +#if defined(BOARD_HAS_PSRAM) +# define LV_MEM_CUSTOM_ALLOC ps_malloc /*Wrapper to malloc*/ +#else # define LV_MEM_CUSTOM_ALLOC malloc /*Wrapper to malloc*/ +#endif # define LV_MEM_CUSTOM_FREE free /*Wrapper to free*/ #endif /*LV_MEM_CUSTOM*/