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:
parent
12f441ff74
commit
ef7234b455
@ -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;
|
||||
|
||||
/**
|
||||
|
@ -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
|
||||
|
@ -1,2 +1,4 @@
|
||||
PSEUDOMODULES += lcd_multi_cntrl
|
||||
|
||||
USEMODULE_INCLUDES_lcd := $(LAST_MAKEFILEDIR)/include
|
||||
USEMODULE_INCLUDES += $(USEMODULE_INCLUDES_lcd)
|
||||
|
Loading…
Reference in New Issue
Block a user