Added decision to include parallel port subdrivers.

If no way to control a PC-style LPT port is found, all subdrivers,
except the PIC-an-LCD will be disabled.
PIC-an-LCD uses the serial port.
This commit is contained in:
robijn
2002-05-06 21:14:14 +00:00
parent 26a63f7d81
commit 289c1c941b
3 changed files with 13 additions and 6 deletions
+8 -4
View File
@@ -11,10 +11,12 @@
#define HD44780_DRIVERS_H
// hd44780 specific header files
#include "hd44780-4bit.h"
#include "hd44780-ext8bit.h"
#include "hd44780-serialLpt.h"
#include "hd44780-winamp.h"
#ifdef HAVE_PCSTYLE_LPT_CONTROL
# include "hd44780-4bit.h"
# include "hd44780-ext8bit.h"
# include "hd44780-serialLpt.h"
# include "hd44780-winamp.h"
#endif
#include "hd44780-picanlcd.h"
// add new connection type header files here
@@ -23,10 +25,12 @@ static const ConnectionMapping connectionMapping[] = {
// string to identify connection on command line
// your initialisation function
// help string for your particular connection
#ifdef HAVE_PCSTYLE_LPT_CONTROL
{"4bit", hd_init_4bit, "\tnone\n"},
{"8bit", hd_init_ext8bit, "\tnone\n"},
{"serialLpt", hd_init_serialLpt, "\tnone\n"},
{"winamp", hd_init_winamp, "\tnone\n"},
#endif
{"picanlcd", hd_init_picanlcd, "\tnone\n"},
// add new connection types and their string specifier here
// default, end of structure element (do not delete)
-1
View File
@@ -74,7 +74,6 @@
#include "hd44780.h"
#include "report.h"
#include "port.h"
#include "timing.h"
#include "hd44780-low.h"
#include "hd44780-drivers.h"