aboutsummaryrefslogtreecommitdiffstats
path: root/drv_HD44780.c
diff options
context:
space:
mode:
authorreinelt <>2004-08-29 13:03:41 +0000
committerreinelt <>2004-08-29 13:03:41 +0000
commit173f8cbcd18c0e3af0de31601c79241b5ccd9d2f (patch)
treecc11ccab2190d550254fbf984613f757932460a7 /drv_HD44780.c
parent1faa74a415de8b91943dd97799596d7bdf3c39ec (diff)
downloadlcd4linux-173f8cbcd18c0e3af0de31601c79241b5ccd9d2f.tar.gz
[lcd4linux @ 2004-08-29 13:03:40 by reinelt]
added RouterBoard driver
Diffstat (limited to '')
-rw-r--r--drv_HD44780.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/drv_HD44780.c b/drv_HD44780.c
index 6aa6d45..443ae6f 100644
--- a/drv_HD44780.c
+++ b/drv_HD44780.c
@@ -1,4 +1,4 @@
-/* $Id: drv_HD44780.c,v 1.32 2004/06/26 12:04:59 reinelt Exp $
+/* $Id: drv_HD44780.c,v 1.33 2004/08/29 13:03:41 reinelt Exp $
*
* new style driver for HD44780-based displays
*
@@ -29,6 +29,10 @@
*
*
* $Log: drv_HD44780.c,v $
+ * Revision 1.33 2004/08/29 13:03:41 reinelt
+ *
+ * added RouterBoard driver
+ *
* Revision 1.32 2004/06/26 12:04:59 reinelt
*
* uh-oh... the last CVS log message messed up things a lot...
@@ -658,7 +662,8 @@ static int drv_HD_start (const char *section, const int quiet)
free(strsize);
return -1;
}
-
+ free(strsize);
+
if (cfg_number(section, "GPOs", 0, 0, 8, &gpos)<0) return -1;
info ("%s: controlling %d GPO's", Name, gpos);
@@ -677,7 +682,7 @@ static int drv_HD_start (const char *section, const int quiet)
if (cfg_number(section, "Bits", 8, 4, 8, &Bits)<0) return -1;
if (Bits!=4 && Bits!=8) {
- error ("%s: bad %s.Bits '%s' from %s, should be '4' or '8'", Name, section, strsize, cfg_source());
+ error ("%s: bad %s.Bits '%d' from %s, should be '4' or '8'", Name, section, Bits, cfg_source());
return -1;
}
info ("%s: using %d bit mode", Name, Bits);
@@ -743,7 +748,6 @@ static int drv_HD_start (const char *section, const int quiet)
}
info("%s: %susing busy-flag checking", Name, UseBusy?"":"not ");
- free(strsize);
drv_HD_command (allControllers, 0x08, T_EXEC); /* Display off, cursor off, blink off */
drv_HD_command (allControllers, 0x0c, T_CLEAR); /* Display on, cursor off, blink off, wait 1.64 ms */