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