aboutsummaryrefslogtreecommitdiffstats
path: root/drv_HD44780.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-08-29 13:03:41 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-08-29 13:03:41 +0000
commit727bcb7cd8f887d4633558e29845c5ab825fbea4 (patch)
treecc11ccab2190d550254fbf984613f757932460a7 /drv_HD44780.c
parent255d4ef19a28b9fcc1e34c4cb529eefbfed04afb (diff)
downloadlcd4linux-727bcb7cd8f887d4633558e29845c5ab825fbea4.tar.gz
[lcd4linux @ 2004-08-29 13:03:40 by reinelt]
added RouterBoard driver git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@484 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_HD44780.c')
-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 */