aboutsummaryrefslogtreecommitdiffstats
path: root/HD44780.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2001-03-12 12:39:36 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2001-03-12 12:39:36 +0000
commit3f2399e0a62d4df4e055ec5273f5b7738c55e81d (patch)
tree711f05c7dafc211fd5ba65e5f66240d2291e9956 /HD44780.c
parentae1c4ae6f41459fdd78ac41cc43fdfa34cdc1067 (diff)
downloadlcd4linux-3f2399e0a62d4df4e055ec5273f5b7738c55e81d.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 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@110 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
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') {