From 7a34aa1940680a265c074fe1c4f329eb0669d63c Mon Sep 17 00:00:00 2001 From: reinelt <> Date: Thu, 13 Apr 2000 06:09:52 +0000 Subject: [lcd4linux @ 2000-04-13 06:09:52 by reinelt] added BogoMips() to system.c (not used by now, maybe sometimes we can calibrate our delay loop with this value) added delay loop to HD44780 driver. It seems to be quite fast now. Hopefully no compiler will optimize away the delay loop! --- MatrixOrbital.c | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'MatrixOrbital.c') diff --git a/MatrixOrbital.c b/MatrixOrbital.c index e178f79..b9575b2 100644 --- a/MatrixOrbital.c +++ b/MatrixOrbital.c @@ -1,4 +1,4 @@ -/* $Id: MatrixOrbital.c,v 1.15 2000/04/12 08:05:45 reinelt Exp $ +/* $Id: MatrixOrbital.c,v 1.16 2000/04/13 06:09:52 reinelt Exp $ * * driver for Matrix Orbital serial display modules * @@ -20,6 +20,14 @@ * * * $Log: MatrixOrbital.c,v $ + * Revision 1.16 2000/04/13 06:09:52 reinelt + * + * added BogoMips() to system.c (not used by now, maybe sometimes we can + * calibrate our delay loop with this value) + * + * added delay loop to HD44780 driver. It seems to be quite fast now. Hopefully + * no compiler will optimize away the delay loop! + * * Revision 1.15 2000/04/12 08:05:45 reinelt * * first version of the HD44780 driver @@ -104,11 +112,6 @@ #define CHARS 8 #define BARS ( BAR_L | BAR_R | BAR_U | BAR_D | BAR_H2 ) -static LCD Lcd; -static char *Port=NULL; -static speed_t Speed; -static int Device=-1; - typedef struct { int len1; int len2; @@ -124,6 +127,11 @@ typedef struct { int ascii; } SEGMENT; +static LCD Lcd; +static char *Port=NULL; +static speed_t Speed; +static int Device=-1; + static char Txt[4][40]; static BAR Bar[4][40]; -- cgit v1.2.3