hd44780 driver: new ConnectionType ftdi (Thomas Jarosch)

This commit is contained in:
marschap
2007-11-03 17:39:05 +00:00
parent 6af05c509a
commit 46347e8c94
10 changed files with 360 additions and 4 deletions
+15 -1
View File
@@ -25,6 +25,9 @@
# endif
# endif
#ifdef HAVE_LIBFTDI
# include <ftdi.h>
#endif
// symbolic names for connection types
#define HD44780_CT_UNKNOWN 0
@@ -42,7 +45,8 @@
#define HD44780_CT_MPLAY 12
#define HD44780_CT_BWCTUSB 13
#define HD44780_CT_LCDUSB 14
#define HD44780_CT_I2C 15
#define HD44780_CT_FTDI 15
#define HD44780_CT_I2C 16
// symbolic names for interface types
#define IF_TYPE_UNKNOWN 0
@@ -103,6 +107,16 @@ typedef struct driver_private_data {
int usbIndex; /* USB interface index */
#endif
#ifdef HAVE_LIBFTDI
// FTDI connection type
struct ftdi_context ftdic, ftdic2;
int ftdi_line_RS;
int ftdi_line_RW;
int ftdi_line_E;
int ftdi_line_backlight;
#endif
int charmap;
int width, height;