From d9e74b0f761fa7ea5dbb50ad9b867456770991c7 Mon Sep 17 00:00:00 2001 From: Rbb666 Date: Fri, 31 Mar 2023 13:39:06 +0800 Subject: [PATCH] [Renesas]Update RA6M3/4 mdk proj --- .../ra6m3-ek/board/lvgl/lv_port_disp.c | 6 +- bsp/renesas/ra6m3-ek/buildinfo.gpdsc | 3 - .../ra6m4-cpk/board/lvgl/lv_port_disp.c | 6 +- bsp/renesas/ra6m4-cpk/buildinfo.gpdsc | 28 +++++-- bsp/renesas/ra6m4-cpk/configuration.xml | 79 ++++++++++++++++++- .../ra6m4-cpk/ra_cfg/fsp_cfg/bsp/board_cfg.h | 5 ++ .../ra6m4-cpk/ra_cfg/fsp_cfg/bsp/bsp_cfg.h | 1 + bsp/renesas/ra6m4-cpk/ra_gen/pin_data.c | 4 - bsp/renesas/ra6m4-cpk/template.uvoptx | 7 +- bsp/renesas/ra6m4-cpk/template.uvprojx | 50 ++++++------ 10 files changed, 141 insertions(+), 48 deletions(-) create mode 100644 bsp/renesas/ra6m4-cpk/ra_cfg/fsp_cfg/bsp/board_cfg.h diff --git a/bsp/renesas/ra6m3-ek/board/lvgl/lv_port_disp.c b/bsp/renesas/ra6m3-ek/board/lvgl/lv_port_disp.c index ed55596715..15ed301098 100644 --- a/bsp/renesas/ra6m3-ek/board/lvgl/lv_port_disp.c +++ b/bsp/renesas/ra6m3-ek/board/lvgl/lv_port_disp.c @@ -14,7 +14,7 @@ #include "lv_port_gpu.h" #endif -#ifdef BSP_USING_SPI_LCD +#ifdef PKG_USING_ILI9341 #include "lcd_ili9341.h" #else #include "lcd_port.h" @@ -48,7 +48,7 @@ static void color_to16_maybe(lv_color16_t *dst, lv_color_t *src) static void disp_flush(lv_disp_drv_t *disp_drv, const lv_area_t *area, lv_color_t *color_p) { -#ifdef BSP_USING_SPI_LCD +#ifdef PKG_USING_ILI9341 lcd_fill_array_spi(area->x1, area->y1, area->x2, area->y2, color_p); #elif DLG_LVGL_USE_GPU_RA6M3 lv_port_gpu_flush(); @@ -100,7 +100,7 @@ static void disp_flush(lv_disp_drv_t *disp_drv, const lv_area_t *area, lv_color_ void lv_port_disp_init(void) { -#ifdef BSP_USING_SPI_LCD +#ifdef PKG_USING_ILI9341 spi_lcd_init(20); #else static rt_device_t device; diff --git a/bsp/renesas/ra6m3-ek/buildinfo.gpdsc b/bsp/renesas/ra6m3-ek/buildinfo.gpdsc index 1e4223b52e..75232d3a70 100644 --- a/bsp/renesas/ra6m3-ek/buildinfo.gpdsc +++ b/bsp/renesas/ra6m3-ek/buildinfo.gpdsc @@ -58,13 +58,11 @@ - - @@ -124,7 +122,6 @@ - diff --git a/bsp/renesas/ra6m4-cpk/board/lvgl/lv_port_disp.c b/bsp/renesas/ra6m4-cpk/board/lvgl/lv_port_disp.c index 3ed47e59c8..625f6de5cb 100644 --- a/bsp/renesas/ra6m4-cpk/board/lvgl/lv_port_disp.c +++ b/bsp/renesas/ra6m4-cpk/board/lvgl/lv_port_disp.c @@ -10,7 +10,7 @@ #include #include "hal_data.h" -#ifdef BSP_USING_SPI_LCD +#ifdef PKG_USING_ILI9341 #include "lcd_ili9341.h" #endif @@ -29,7 +29,7 @@ static lv_color_t buf_2[COLOR_BUFFER]; static void disp_flush(lv_disp_drv_t *disp_drv, const lv_area_t *area, lv_color_t *color_p) { -#ifdef BSP_USING_SPI_LCD +#ifdef PKG_USING_ILI9341 lcd_fill_array_spi(area->x1, area->y1, area->x2, area->y2, color_p); #endif lv_disp_flush_ready(disp_drv); @@ -37,7 +37,7 @@ static void disp_flush(lv_disp_drv_t *disp_drv, const lv_area_t *area, lv_color_ void lv_port_disp_init(void) { -#ifdef BSP_USING_SPI_LCD +#ifdef PKG_USING_ILI9341 spi_lcd_init(20); #endif /*Initialize `disp_buf` with the buffer(s). With only one buffer use NULL instead buf_2 */ diff --git a/bsp/renesas/ra6m4-cpk/buildinfo.gpdsc b/bsp/renesas/ra6m4-cpk/buildinfo.gpdsc index f0fab019bd..ed18fa2506 100644 --- a/bsp/renesas/ra6m4-cpk/buildinfo.gpdsc +++ b/bsp/renesas/ra6m4-cpk/buildinfo.gpdsc @@ -57,56 +57,73 @@ - - + - + + + + + + + + + + + + + + + - + + + + + @@ -114,15 +131,16 @@ - + + diff --git a/bsp/renesas/ra6m4-cpk/configuration.xml b/bsp/renesas/ra6m4-cpk/configuration.xml index 8c62a55178..fbde369a97 100644 --- a/bsp/renesas/ra6m4-cpk/configuration.xml +++ b/bsp/renesas/ra6m4-cpk/configuration.xml @@ -1,7 +1,7 @@ -