Skip to content

Commit

Permalink
c_modules: Add mimxrt support.
Browse files Browse the repository at this point in the history
  • Loading branch information
pi-anl committed Oct 19, 2024
1 parent 58406e6 commit 7230ea4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lv_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@
#endif

/* Use NXP's VG-Lite GPU on iMX RTxxx platforms. */
#ifndef LV_USE_DRAW_VGLITE
#define LV_USE_DRAW_VGLITE 0
#endif

#if LV_USE_DRAW_VGLITE
/* Enable blit quality degradation workaround recommended for screen's dimension > 352 pixels. */
Expand All @@ -167,7 +169,9 @@
#endif

/* Use NXP's PXP on iMX RTxxx platforms. */
#ifndef LV_USE_DRAW_PXP
#define LV_USE_DRAW_PXP 0
#endif

#if LV_USE_DRAW_PXP
/* Enable PXP asserts. */
Expand Down
7 changes: 7 additions & 0 deletions micropython.mk
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ FROZEN_MANIFEST += $(LVGL_BINDING_DIR)/manifest.py

MICROPY_PORT = $(notdir $(CURDIR))

ifeq ($(MICROPY_PORT),mimxrt)

CFLAGS_USERMOD += -DLV_USE_DRAW_PXP=1
#CFLAGS_USERMOD += -DLV_USE_DRAW_VGLITE=1

endif

ifeq ($(MICROPY_PORT),unix)
# This section only included when building the micropython unix port
UNAME_S := $(shell uname -s)
Expand Down

0 comments on commit 7230ea4

Please sign in to comment.