mirror of
https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Library.git
synced 2026-03-05 15:54:11 +01:00
Merge pull request #68 from sharandac/master
allows lvgl to use psram if it is available
This commit is contained in:
@@ -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 <stdlib.h> /*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*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user