Added new driver:
* lcdm001 (with updates to autoconfig and Makefiles)
This commit is contained in:
@@ -65,6 +65,11 @@ User dgd
|
||||
|
||||
[joy]
|
||||
|
||||
# LCDM001 driver
|
||||
|
||||
[lcdm001]
|
||||
Arguments -d /dev/lcd
|
||||
|
||||
# MatrixOrbital driver
|
||||
|
||||
[MtxOrb]
|
||||
|
||||
@@ -48,6 +48,8 @@
|
||||
|
||||
#undef MTXORB_DRV
|
||||
|
||||
#undef LCDM001_DRV
|
||||
|
||||
#undef SED1520_DRV
|
||||
|
||||
#undef STV5730_DRV
|
||||
|
||||
+7
-3
@@ -6,15 +6,15 @@ AC_ARG_ENABLE(drivers,
|
||||
[ drivers may be separated with commas.]
|
||||
[ \"all\" compiles all drivers],
|
||||
drivers="$enableval",
|
||||
drivers=[mtxorb,cfontz,curses,text,lb216,bayrad,glk])
|
||||
drivers=[lcdm001,mtxorb,cfontz,curses,text,lb216,bayrad,glk])
|
||||
|
||||
if test "$drivers" = "all"; then
|
||||
case "$host" in
|
||||
*-*-*linux*)
|
||||
drivers=[mtxorb,cfontz,curses,text,lb216,hd44780,joy,irman,lircin,bayrad,glk,stv5730,sed1520,svgalib]
|
||||
drivers=[lcdm001,mtxorb,cfontz,curses,text,lb216,hd44780,joy,irman,lircin,bayrad,glk,stv5730,sed1520,svgalib]
|
||||
;;
|
||||
*-*-*solaris*)
|
||||
drivers=[mtxorb,cfontz,curses,text,lb216,bayrad,glk]
|
||||
drivers=[lcdm001,mtxorb,cfontz,curses,text,lb216,bayrad,glk]
|
||||
;;
|
||||
esac
|
||||
AC_MSG_RESULT(all)
|
||||
@@ -25,6 +25,10 @@ fi
|
||||
for driver in $drivers
|
||||
do
|
||||
case "$driver" in
|
||||
lcdm001)
|
||||
DRIVERS="$DRIVERS lcdm001.o"
|
||||
AC_DEFINE(LCDM001_DRV)
|
||||
;;
|
||||
mtxorb)
|
||||
DRIVERS="$DRIVERS MtxOrb.o"
|
||||
AC_DEFINE(MTXORB_DRV)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
noinst_LIBRARIES = libLCDdrivers.a
|
||||
libLCDdrivers_a_SOURCES = lcd.c lcd.h lcd_lib.c
|
||||
EXTRA_libLCDdrivers_a_SOURCES = MtxOrb.c MtxOrb.h text.c text.h \
|
||||
lcdm001.c lcdm001.h \
|
||||
curses_drv.c curses_drv.h drv_base.h \
|
||||
hd44780.c hd44780.h lb216.c lb216.h \
|
||||
hd44780-4bit.c hd44780-4bit.h \
|
||||
|
||||
@@ -65,6 +65,10 @@ static char *lcd_drv_getinfo ();
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef LCDM001_DRV
|
||||
#include "lcdm001.h"
|
||||
#endif
|
||||
|
||||
#ifdef MTXORB_DRV
|
||||
#include "MtxOrb.h"
|
||||
#endif
|
||||
@@ -154,6 +158,10 @@ lcd_logical_driver lcd, *lcd_root = NULL, *lcd_ptr = NULL;
|
||||
//
|
||||
lcd_physical_driver drivers[] = {
|
||||
|
||||
#ifdef LCDM001_DRV
|
||||
{"lcdm001", lcdm001_init,},
|
||||
{"LCDM001", lcdm001_init,},
|
||||
#endif
|
||||
#ifdef MTXORB_DRV
|
||||
{"MtxOrb", MtxOrb_init,},
|
||||
{"MatrixOrbital", MtxOrb_init,},
|
||||
|
||||
Reference in New Issue
Block a user