[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!

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@44 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
reinelt
2000-04-13 06:09:52 +00:00
parent 73ffb61bfc
commit 6dfd10e9f5
5 changed files with 126 additions and 54 deletions

View File

@@ -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];