feat(conf): make LV_MEM_BUF_MAX_NUM configurable (#2747)

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2021-11-02 13:29:37 -05:00
committed by GitHub
parent 749d1b3ec3
commit 83f9c30985
4 changed files with 22 additions and 4 deletions

View File

@@ -158,6 +158,16 @@
#endif
#endif /*LV_MEM_CUSTOM*/
/*Number of the intermediate memory buffer used during rendering and other internal processing mechanisms.
*You will see an error log message if there wasn't enough buffers. */
#ifndef LV_MEM_BUF_MAX_NUM
# ifdef CONFIG_LV_MEM_BUF_MAX_NUM
# define LV_MEM_BUF_MAX_NUM CONFIG_LV_MEM_BUF_MAX_NUM
# else
# define LV_MEM_BUF_MAX_NUM 16
# endif
#endif
/*Use the standard `memcpy` and `memset` instead of LVGL's own functions. (Might or might not be faster).*/
#ifndef LV_MEMCPY_MEMSET_STD
# ifdef CONFIG_LV_MEMCPY_MEMSET_STD

View File

@@ -28,10 +28,6 @@ extern "C" {
* DEFINES
*********************/
#ifndef LV_MEM_BUF_MAX_NUM
#define LV_MEM_BUF_MAX_NUM 16
#endif
/**********************
* TYPEDEFS
**********************/