Skip to content

Commit

Permalink
mimxrt/boards/MIMXRT1170_EVK: Bring in display_support from sdk examp…
Browse files Browse the repository at this point in the history
…les.

Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
  • Loading branch information
pi-anl committed Oct 21, 2024
1 parent acf6844 commit d564c37
Show file tree
Hide file tree
Showing 4 changed files with 568 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ports/mimxrt/boards/MIMXRT1170_EVK/display_support.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
#endif

#define DEMO_BUFFER_WIDTH DEMO_PANEL_WIDTH
#define DEMO_BUFFER_HEIGHT DEMO_PANEL_HEIGHT
#define DEMO_BUFFER_HEIGHT (DEMO_PANEL_HEIGHT / 10)

/* Where the frame buffer is shown in the screen. */
#define DEMO_BUFFER_START_X 0U
Expand Down
5 changes: 4 additions & 1 deletion ports/mimxrt/boards/MIMXRT1170_EVK/lvgl_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
#endif

#define DEMO_FB_SIZE \
(((DEMO_BUFFER_WIDTH * DEMO_BUFFER_HEIGHT * LCD_FB_BYTE_PER_PIXEL / 10) + DEMO_FB_ALIGN - 1) & ~(DEMO_FB_ALIGN - 1))
(((DEMO_BUFFER_WIDTH * DEMO_BUFFER_HEIGHT * LCD_FB_BYTE_PER_PIXEL) + DEMO_FB_ALIGN - 1) & ~(DEMO_FB_ALIGN - 1))

#if LV_USE_GPU_NXP_VG_LITE
#define VG_LITE_MAX_CONTIGUOUS_SIZE 0x200000
Expand Down Expand Up @@ -188,6 +188,8 @@ void lv_port_pre_init(void) {
void lv_port_disp_init(void) {
// static lv_disp_draw_buf_t disp_buf;

BOARD_InitMipiPanelPins();

memset(s_frameBuffer, 0, sizeof(s_frameBuffer));
#if DEMO_USE_ROTATE
memset(s_lvglBuffer, 0, sizeof(s_lvglBuffer));
Expand Down Expand Up @@ -447,6 +449,7 @@ void DEMO_FlushDisplay(lv_display_t * disp, const lv_area_t * area, uint8_t * px
#endif

void lv_port_indev_init(void) {
BOARD_MIPIPanelTouch_I2C_Init();
// static lv_indev_drv_t indev_drv;

/*------------------
Expand Down
Loading

0 comments on commit d564c37

Please sign in to comment.