diff --git a/bsp/renesas/ra4m2-eco/board/Kconfig b/bsp/renesas/ra4m2-eco/board/Kconfig index ea84a100e2..767fa624e7 100644 --- a/bsp/renesas/ra4m2-eco/board/Kconfig +++ b/bsp/renesas/ra4m2-eco/board/Kconfig @@ -190,10 +190,6 @@ menu "Hardware Drivers Config" default n select RT_USING_SPI if BSP_USING_SPI - config BSP_SPI_USING_DTC_DMA - bool "Enable SPI DTC transfers data without using the CPU." - default n - config BSP_USING_SPI0 bool "Enable SPI0 BUS" default n @@ -201,27 +197,32 @@ menu "Hardware Drivers Config" config BSP_USING_SPI1 bool "Enable SPI1 BUS" default n - - config BSP_USING_SCI_SPI0 - bool "Enable SCI SPI0 BUS" - default n - config BSP_USING_SCI_SPI1 - bool "Enable SCI SPI1 BUS" - default n - config BSP_USING_SCI_SPI2 - bool "Enable SCI SPI2 BUS" - default n - config BSP_USING_SCI_SPI3 - bool "Enable SCI SPI3 BUS" - default n - config BSP_USING_SCI_SPI4 - bool "Enable SCI SPI4 BUS" - default n - config BSP_USING_SCI_SPI9 - bool "Enable SCI SPI9 BUS" - default n - endif + + menuconfig BSP_USING_SCI_SPI + bool "Enable SCI SPI BUS" + default n + select RT_USING_SPI + if BSP_USING_SCI_SPI + config BSP_USING_SCI_SPI0 + bool "Enable SCI SPI0 BUS" + default n + config BSP_USING_SCI_SPI1 + bool "Enable SCI SPI1 BUS" + default n + config BSP_USING_SCI_SPI2 + bool "Enable SCI SPI2 BUS" + default n + config BSP_USING_SCI_SPI3 + bool "Enable SCI SPI3 BUS" + default n + config BSP_USING_SCI_SPI4 + bool "Enable SCI SPI4 BUS" + default n + config BSP_USING_SCI_SPI9 + bool "Enable SCI SPI9 BUS" + default n + endif endmenu menu "Board extended module Drivers" diff --git a/bsp/renesas/ra6m3-ek/board/Kconfig b/bsp/renesas/ra6m3-ek/board/Kconfig index 0e9f77599a..7eea2a104d 100644 --- a/bsp/renesas/ra6m3-ek/board/Kconfig +++ b/bsp/renesas/ra6m3-ek/board/Kconfig @@ -50,20 +50,6 @@ menu "Hardware Drivers Config" endif endif - menuconfig BSP_USING_SPI - bool "Enable SPI BUS" - default n - select RT_USING_SPI - if BSP_USING_SPI - config BSP_USING_SPI0 - bool "Enable SPI0 BUS" - default n - - config BSP_USING_SPI1 - bool "Enable SPI1 BUS" - default n - endif - menuconfig BSP_USING_FS bool "Enable File System" select RT_USING_DFS @@ -79,80 +65,86 @@ menu "Hardware Drivers Config" default n endif - menuconfig BSP_USING_PWM - bool "Enable PWM" - default n - select RT_USING_PWM - if BSP_USING_PWM - config BSP_USING_PWM12 - bool "Enable GPT12 (16-Bits) output PWM" - default n - endif + menuconfig BSP_USING_PWM + bool "Enable PWM" + default n + select RT_USING_PWM + if BSP_USING_PWM + config BSP_USING_PWM12 + bool "Enable GPT12 (16-Bits) output PWM" + default n + endif - config BSP_USING_LCD - bool "Enable LCD" - select BSP_USING_GPIO - default n + config BSP_USING_LCD + bool "Enable LCD" + select BSP_USING_GPIO + default n - menuconfig BSP_USING_SCI_SPI - bool "Enable SCI SPI BUS" - default n - select RT_USING_SPI - if BSP_USING_SCI_SPI - config BSP_USING_SCI_SPI0 - bool "Enable SCI SPI0 BUS" - default n - config BSP_USING_SCI_SPI3 - bool "Enable SCI SPI3 BUS" - default n - config BSP_USING_SCI_SPI6 - bool "Enable SCI SPI6 BUS" - default n - endif + menuconfig BSP_USING_SCI_SPI + bool "Enable SCI SPI BUS" + default n + select RT_USING_SPI + if BSP_USING_SCI_SPI + config BSP_USING_SCI_SPI0 + bool "Enable SCI SPI0 BUS" + default n + config BSP_USING_SCI_SPI1 + bool "Enable SCI SPI1 BUS" + default n + config BSP_USING_SCI_SPI2 + bool "Enable SCI SPI2 BUS" + default n + config BSP_USING_SCI_SPI3 + bool "Enable SCI SPI3 BUS" + default n + config BSP_USING_SCI_SPI6 + bool "Enable SCI SPI6 BUS" + default n + endif - menuconfig BSP_USING_SPI - bool "Enable SPI BUS" - default n - select RT_USING_SPI - if BSP_USING_SPI - config BSP_USING_SPI0 - bool "Enable SPI0 BUS" - default n - config BSP_USING_SPI1 - bool "Enable SPI1 BUS" - default n - endif + menuconfig BSP_USING_SPI + bool "Enable SPI BUS" + default n + select RT_USING_SPI + if BSP_USING_SPI + config BSP_USING_SPI0 + bool "Enable SPI0 BUS" + default n + config BSP_USING_SPI1 + bool "Enable SPI1 BUS" + default n + endif - config BSP_USING_SPI_LCD - bool "Enable SPI LCD" - select BSP_USING_GPIO - select BSP_USING_SPI - select BSP_USING_SPI0 - default n + config BSP_USING_SPI_LCD + bool "Enable SPI LCD" + select BSP_USING_GPIO + select BSP_USING_SPI + select BSP_USING_SPI0 + default n + + menuconfig BSP_USING_LVGL + bool "Enable LVGL for LCD" + select PKG_USING_LVGL + default n + if BSP_USING_LVGL + config BSP_USING_LCD_ILI9431 + bool "Enable LVGL for LCD_ILI9431" + select PKG_USING_ILI9341 + select BSP_USING_SPI_LCD + default n + config BSP_USING_LCD_RGB + bool "Enable LVGL for LCD_RGB565" + select BSP_USING_LCD + default n + endif - menuconfig BSP_USING_LVGL - bool "Enable LVGL for LCD" - select PKG_USING_LVGL - default n if BSP_USING_LVGL - config BSP_USING_LCD_ILI9431 - bool "Enable LVGL for LCD_ILI9431" - select PKG_USING_ILI9341 - select BSP_USING_SPI_LCD - default n - config BSP_USING_LCD_RGB - bool "Enable LVGL for LCD_RGB565" - select BSP_USING_LCD - default n + config BSP_USING_LVGL_DEMO + bool "Enable LVGL demo" + select PKG_USING_LV_MUSIC_DEMO + default y endif - if BSP_USING_LVGL - config BSP_USING_LVGL_DEMO - bool "Enable LVGL demo" - select PKG_USING_LV_MUSIC_DEMO - default y - endif - endmenu menu "Board extended module Drivers" diff --git a/bsp/renesas/ra6m3-ek/docs/lvgl使用文档.md b/bsp/renesas/ra6m3-ek/docs/lvgl使用文档.md index 9ba2d6dfa5..0b9a56b4a7 100644 --- a/bsp/renesas/ra6m3-ek/docs/lvgl使用文档.md +++ b/bsp/renesas/ra6m3-ek/docs/lvgl使用文档.md @@ -68,6 +68,10 @@ ![](picture/lvgl/01.png) +接着在 `RT-Thread online packages → peripheral libraries and drivers → TFT-LCD ILI9341 SPI screen driver software package` 路径下配置 `ILI9341` 屏幕参数 + +![](picture/lvgl/ili9341.png) + 接下来退出菜单界面,输入 `pkgs --update` 命令手动联网获取 lvgl 的软件包到 `packages` 文件夹下 ![](picture/lvgl/02.png) diff --git a/bsp/renesas/ra6m3-ek/docs/picture/lvgl/ili9341.png b/bsp/renesas/ra6m3-ek/docs/picture/lvgl/ili9341.png new file mode 100644 index 0000000000..ee0101bdc2 Binary files /dev/null and b/bsp/renesas/ra6m3-ek/docs/picture/lvgl/ili9341.png differ diff --git a/bsp/renesas/ra6m4-cpk/board/Kconfig b/bsp/renesas/ra6m4-cpk/board/Kconfig index 693136394c..308a32b680 100644 --- a/bsp/renesas/ra6m4-cpk/board/Kconfig +++ b/bsp/renesas/ra6m4-cpk/board/Kconfig @@ -337,6 +337,12 @@ menu "Hardware Drivers Config" config BSP_USING_SCI_SPI0 bool "Enable SCI SPI0 BUS" default n + config BSP_USING_SCI_SPI1 + bool "Enable SCI SPI1 BUS" + default n + config BSP_USING_SCI_SPI2 + bool "Enable SCI SPI2 BUS" + default n config BSP_USING_SCI_SPI3 bool "Enable SCI SPI3 BUS" default n