Skip to content

Commit

Permalink
feat(draw): add NEMA GFX draw context support (lvgl#6314)
Browse files Browse the repository at this point in the history
Co-authored-by: Gabor Kiss-Vamosi <[email protected]>
Co-authored-by: ym-terada <[email protected]>
  • Loading branch information
3 people authored Jun 7, 2024
1 parent 897ba9a commit c86cea3
Show file tree
Hide file tree
Showing 11 changed files with 1,296 additions and 1 deletion.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ LVGL provides everything you need to create an embedded GUI with easy-to-use gra

**English** | [中文](./README_zh.md) | [Português do Brasil](./README_pt_BR.md)


---

#### Table of content
Expand Down
3 changes: 3 additions & 0 deletions lv_conf_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@
* GPU
*-----------*/

/*Use TSi's (aka Think Silicon) acceleration library NemaGFX */
#define LV_USE_NEMA_GFX 0

/*Use Arm's 2D acceleration library Arm-2D */
#define LV_USE_GPU_ARM2D 0

Expand Down
9 changes: 9 additions & 0 deletions src/core/lv_obj.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
#include "../draw/nxp/pxp/lv_gpu_nxp_pxp.h"
#endif

#if LV_USE_NEMA_GFX
#include "../draw/nema_gfx/lv_draw_nema_gfx.h"
#endif

/*********************
* DEFINES
*********************/
Expand Down Expand Up @@ -137,6 +141,11 @@ void lv_init(void)
PXP_COND_STOP(!lv_gpu_nxp_pxp_init(), "PXP init failed.");
#endif

#if LV_USE_NEMA_GFX
/*Initialize NEMA GPU*/
lv_draw_nema_gfx_init();
#endif

_lv_obj_style_init();
_lv_ll_init(&LV_GC_ROOT(_lv_disp_ll), sizeof(lv_disp_t));
_lv_ll_init(&LV_GC_ROOT(_lv_indev_ll), sizeof(lv_indev_t));
Expand Down
1 change: 1 addition & 0 deletions src/draw/lv_draw.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ include $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/draw/sdl/lv_draw_sdl.mk
include $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/draw/stm32_dma2d/lv_draw_stm32_dma2d.mk
include $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/draw/sw/lv_draw_sw.mk
include $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/draw/swm341_dma2d/lv_draw_swm341_dma2d.mk
include $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/draw/nema_gfx/lv_draw_nema_gfx.mk
Loading

0 comments on commit c86cea3

Please sign in to comment.