From 2cbeddce8a74007c101967c5e744cfd087141701 Mon Sep 17 00:00:00 2001 From: Zoltan Janosy Date: Sun, 14 Jan 2024 14:38:09 +0100 Subject: [PATCH] Added LCD driver options to Kconfig. (#5298) Co-authored-by: Gabor Kiss-Vamosi --- Kconfig | 20 ++++++++++++++++++-- docs/integration/driver/display/gen_mipi.rst | 3 +-- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/Kconfig b/Kconfig index c1237c726..7c06e6372 100644 --- a/Kconfig +++ b/Kconfig @@ -346,7 +346,7 @@ menu "LVGL configuration" bool "Use VG-Lite GPU." config LV_VG_LITE_USE_GPU_INIT - bool "Enbale VG-Lite custom external 'gpu_init()' function." + bool "Enable VG-Lite custom external 'gpu_init()' function." default n depends on LV_USE_DRAW_VG_LITE @@ -1265,7 +1265,7 @@ menu "LVGL configuration" default y help This can save some memory, but not much. After the quick access bar is created, it can be hidden by clicking the button at the top left corner of the browsing area, which is very useful for small screen devices. - + menuconfig LV_USE_VG_LITE_THORVG bool "VG-Lite Simulator" default n @@ -1473,6 +1473,22 @@ menu "LVGL configuration" config LV_USE_EVDEV bool "Use evdev input driver" default n + + config LV_USE_ST7735 + bool "Use ST7735 LCD driver" + default n + + config LV_USE_ST7789 + bool "Use ST7789 LCD driver" + default n + + config LV_USE_ST7796 + bool "Use ST7796 LCD driver" + default n + + config LV_USE_ILI9341 + bool "Use ILI9341 LCD driver" + default n endmenu menu "Examples" diff --git a/docs/integration/driver/display/gen_mipi.rst b/docs/integration/driver/display/gen_mipi.rst index 32da21906..ee672c8dc 100644 --- a/docs/integration/driver/display/gen_mipi.rst +++ b/docs/integration/driver/display/gen_mipi.rst @@ -65,7 +65,7 @@ You need to implement two platform-dependent functions: The only difference between the :cpp:func:`my_lcd_send_cmd()` and :cpp:func:`my_lcd_send_color()` functions is that :cpp:func:`my_lcd_send_cmd()` is used to send short commands and it is expected complete the transaction when it returns (in other words, it should be blocking), while :cpp:func:`my_lcd_send_color()` is only used to send pixel data, and it is recommended to use -DMA to transmit data in the background. More sophisticated methods can be also implemented, like queing transfers and scheduling them in the background. +DMA to transmit data in the background. More sophisticated methods can be also implemented, like queuing transfers and scheduling them in the background. Please note that while display flushing is handled by the driver, it is the user's responsibility to call :cpp:func:`lv_display_flush_ready()` when the color transfer completes. In case of a DMA transfer this is usually done in a transfer ready callback. @@ -102,7 +102,6 @@ Example ... - /* Initialize LCD I/O bus, reset LCD */ static int32_t my_lcd_io_init(void) {