mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
04c3facd8e
For the parallel interface support the following changes were made: 1. Additional `lcd_*` pseudomodules are defined to control whether SPI serial or MCU 8080 8-/16-bit parallel interface is used. 2. The low level function implementation was extended for parallel interfaces so that the now can use either the SPI serial interface or the MCU 8080 8-/16-bit parallel interface. Using the `lcc_*` modules, either the SPI serial interface or the MCU 8080 8-/16-bit interface or even both for multiple display can be used simultaneously.
78 lines
2.1 KiB
Plaintext
78 lines
2.1 KiB
Plaintext
# Copyright (c) 2020 HAW Hamburg
|
|
#
|
|
# This file is subject to the terms and conditions of the GNU Lesser
|
|
# General Public License v2.1. See the file LICENSE in the top level
|
|
# directory for more details.
|
|
#
|
|
|
|
config MODULE_LCD
|
|
bool "LCD display driver"
|
|
depends on HAS_PERIPH_GPIO
|
|
depends on TEST_KCONFIG
|
|
select MODULE_PERIPH_GPIO
|
|
|
|
config MODULE_LCD_MULTI_CNTRL
|
|
bool
|
|
help
|
|
The controller-specific driver supports multiple controller variants.
|
|
|
|
config MODULE_LCD_SPI
|
|
bool
|
|
default y if !MODULE_LCD_PARALLEL && !MODULE_LCD_PARALLEL_16BIT
|
|
default y if HAVE_LCD_SPI
|
|
depends on HAS_PERIPH_SPI
|
|
depends on MODULE_LCD
|
|
select MODULE_PERIPH_SPI
|
|
help
|
|
SPI serial interface is used
|
|
|
|
config MODULE_LCD_PARALLEL
|
|
bool
|
|
default y if HAVE_LCD_PARALLEL || HAVE_LCD_PARALLEL_16BIT
|
|
depends on MODULE_LCD
|
|
help
|
|
MCU 8080 8-/16-bit parallel interface is used
|
|
|
|
config MODULE_LCD_PARALLEL_16BIT
|
|
bool
|
|
default y if HAVE_LCD_PARALLEL_16BIT
|
|
depends on MODULE_LCD
|
|
help
|
|
MCU 8080 16-bit paralell interface is used
|
|
|
|
config HAVE_LCD_SPI
|
|
bool
|
|
help
|
|
Indicates that a display with MCU 8080 8-/16-bit parallel interface
|
|
is present
|
|
|
|
config HAVE_LCD_PARALLEL
|
|
bool
|
|
help
|
|
Indicates that a display with MCU 8080 8-/16-bit parallel interface
|
|
is present
|
|
|
|
config HAVE_LCD_PARALLEL_16BIT
|
|
bool
|
|
help
|
|
Indicates that a display with MCU 8080 16-bit parallel interface
|
|
is present
|
|
|
|
menuconfig KCONFIG_USEMODULE_LCD
|
|
bool "Configure LCD driver"
|
|
depends on USEMODULE_LCD
|
|
help
|
|
Configure the LCD display driver using Kconfig.
|
|
|
|
if KCONFIG_USEMODULE_LCD
|
|
|
|
config LCD_LE_MODE
|
|
bool "Enable little endian to big endian conversion"
|
|
help
|
|
Enable this configuration to convert little endian colors to big endian.
|
|
LCD device requires colors to be send in big endian RGB-565 format.
|
|
Enabling this option allows for little endian colors. Enabling this
|
|
however will slow down the driver as it cannot use DMA anymore.
|
|
|
|
endif # KCONFIG_USEMODULE_LCD
|