aboutsummaryrefslogtreecommitdiffstats
path: root/HD44780.c
diff options
context:
space:
mode:
authorreinelt <>2001-03-12 12:39:36 +0000
committerreinelt <>2001-03-12 12:39:36 +0000
commit1631c724f42e4b4fd70b4ba3834db4a435dfc74f (patch)
tree711f05c7dafc211fd5ba65e5f66240d2291e9956 /HD44780.c
parentb95429e73bd0b71a384f9319670622af4b54f8ae (diff)
downloadlcd4linux-1631c724f42e4b4fd70b4ba3834db4a435dfc74f.tar.gz
[lcd4linux @ 2001-03-12 12:39:36 by reinelt]
reworked autoconf a lot: drivers may be excluded, #define's went to config.h
Diffstat (limited to 'HD44780.c')
-rw-r--r--HD44780.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/HD44780.c b/HD44780.c
index aea9a56..8bb44a9 100644
--- a/HD44780.c
+++ b/HD44780.c
@@ -1,4 +1,4 @@
-/* $Id: HD44780.c,v 1.12 2001/02/14 07:40:16 reinelt Exp $
+/* $Id: HD44780.c,v 1.13 2001/03/12 12:39:36 reinelt Exp $
*
* driver for display modules based on the HD44780 chip
*
@@ -20,6 +20,10 @@
*
*
* $Log: HD44780.c,v $
+ * Revision 1.13 2001/03/12 12:39:36 reinelt
+ *
+ * reworked autoconf a lot: drivers may be excluded, #define's went to config.h
+ *
* Revision 1.12 2001/02/14 07:40:16 reinelt
*
* first (incomplete) GPO implementation
@@ -95,6 +99,8 @@
*
*/
+#include "config.h"
+
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -397,6 +403,7 @@ int HD_init (LCD *Self)
return -1;
}
+#ifdef USE_OLD_UDELAY
s=cfg_get ("Delay");
if (s==NULL || *s=='\0') {
error ("HD44780: no 'Delay' entry in %s", cfg_file());
@@ -406,6 +413,7 @@ int HD_init (LCD *Self)
error ("HD44780: bad delay '%s' in %s", s, cfg_file());
return -1;
}
+#endif
s=cfg_get("Size");
if (s==NULL || *s=='\0') {