1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/lcd: support of controller variant parameter

If the controller-specific driver supports multiple controller variants, the variant has to be specified in the configuration parameter set.
This commit is contained in:
Gunar Schorcht 2023-07-13 09:58:34 +02:00
parent 12f441ff74
commit ef7234b455
3 changed files with 12 additions and 1 deletions

View File

@ -30,7 +30,6 @@
* transfer.
*/
#ifndef LCD_H
#define LCD_H
@ -86,6 +85,11 @@ typedef struct {
uint8_t rotation; /**< Display rotation mode */
uint8_t offset_x; /**< LCD offset to apply on x axis. */
uint8_t offset_y; /**< LCD offset to apply on y axis. */
#if MODULE_LCD_MULTI_CNTRL || DOXYGEN
uint8_t cntrl; /**< controller variant used, if the controller-
specific driver supports multiple
controller variants */
#endif
} lcd_params_t;
/**

View File

@ -13,6 +13,11 @@ config MODULE_LCD
select MODULE_PERIPH_SPI
select MODULE_PERIPH_GPIO
config MODULE_LCD_MULTI_CNTRL
bool
help
The controller-specific driver supports multiple controller variants.
menuconfig KCONFIG_USEMODULE_LCD
bool "Configure LCD driver"
depends on USEMODULE_LCD

View File

@ -1,2 +1,4 @@
PSEUDOMODULES += lcd_multi_cntrl
USEMODULE_INCLUDES_lcd := $(LAST_MAKEFILEDIR)/include
USEMODULE_INCLUDES += $(USEMODULE_INCLUDES_lcd)