add the new files for the g15 driver and the unified serial hd44780 sub-driver

This commit is contained in:
marschap
2006-08-13 15:55:47 +00:00
parent e74ec40375
commit 4f5aa4e451
5 changed files with 1346 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
#ifndef HD44780_SERIAL_H
#define HD44780_SERIAL_H
#include "lcd.h" /* for Driver */
#define SERIALIF_NAME_LENGTH 20
#define DEFAULT_DEVICE "/dev/lcd"
typedef struct SerialInterface {
char name[SERIALIF_NAME_LENGTH];
char instruction_escape;
char data_escape;
char data_escape_max; /* data escape upper limit */
unsigned int default_bitrate;
char if_bits;
char keypad;
char keypad_escape;
char backlight;
char backlight_escape;
} SerialInterface;
/* List of connectiontypes managed by this driver, if you change
something here, remember also to change hd44780-drivers.h */
static const SerialInterface serial_interfaces[] = {
/* name instr data ^ bitrate bits K esc B esc */
{"picanlcd", 0x11, 0x12, 0x20, 9600, 8, 0, 0, 0, 0 },
{"lcdserializer", 0xFE, 0, 0, 9600, 8, 0, 0, 0, 0 },
{"los-panel", 0xFE, 0, 0, 9600, 4, 1, 0xFE, 1, 0 },
{"vdr-lcd", 0xFE, 0, 0, 9600, 4, 0, 0, 0, 0 }
};
/* initialize this particular driver */
int hd_init_serial (Driver *drvthis);
#endif