feat(draw_buf): add option to select draw_buf implementation

This commit is contained in:
Gabor Kiss-Vamosi
2023-08-18 23:01:43 +02:00
parent ae3567cb46
commit 1f807ae714
5 changed files with 146 additions and 43 deletions

View File

@@ -86,12 +86,18 @@
/*========================
* RENDERING CONFIGURATION
*========================*/
/* Select a draw buffer implementation. Possible values:
* - LV_DRAW_BUF_BASIC: LVGL's built in implementation
* - LV_DRAW_BUF_CUSTOM: Implement teh function of lv_draw_buf.h externally
*/
#define LV_USE_DRAW_BUF LV_DRAW_BUF_BASIC
/*Align the stride of all layers and images to this bytes*/
#define LV_DRAW_BUF_STRIDE_ALIGN 1
/*Align the start address of draw_buf addresses to this bytes*/
#define LV_DRAW_BUF_ALIGN 4
#if LV_USE_DRAW_BUF == LV_DRAW_BUF_BASIC
/*Align the stride of all layers and images to this bytes*/
#define LV_DRAW_BUF_STRIDE_ALIGN 1 /*Multiple of these Bytes*/
/*Align the start address of draw_buf addresses to this bytes*/
#define LV_DRAW_BUF_ALIGN 4
#endif
/* Max. memory to be used for layers */
#define LV_LAYER_MAX_MEMORY_USAGE 150 /*[kB]*/