Add 'raspberrypi' connection type to HD44780 driver (by P. Corner).
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
#define HD44780_CT_USBLCD 19
|
||||
#define HD44780_CT_USBTINY 20
|
||||
#define HD44780_CT_USB4ALL 21
|
||||
#define HD44780_CT_RASPBERRYPI 22
|
||||
/**@}*/
|
||||
|
||||
/** \name Symbolic names for interface types
|
||||
@@ -104,7 +105,7 @@ typedef struct ConnectionMapping {
|
||||
int if_type;
|
||||
/** Pointer to connection type's initialization function */
|
||||
int (*init_fn) (Driver *drvthis);
|
||||
} ConnectionMapping;
|
||||
} ConnectionMapping;
|
||||
|
||||
|
||||
/**
|
||||
@@ -153,6 +154,9 @@ typedef struct hd44780_private_data {
|
||||
#ifdef WITH_ETHLCD
|
||||
int sock; /**< socket for TCP devices */
|
||||
#endif
|
||||
#ifdef WITH_RASPBERRYPI
|
||||
struct rpi_gpio_map *rpi_gpio; /**< GPIO pin mapping for Raspberry Pi */
|
||||
#endif
|
||||
|
||||
int charmap; /**< index of currently used charmap */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user