diff options
author | reinelt <> | 2005-02-24 07:06:48 +0000 |
---|---|---|
committer | reinelt <> | 2005-02-24 07:06:48 +0000 |
commit | b3c3e822b6c56387cb3583a771767def47624463 (patch) | |
tree | 84dd4c1b0750ad3135abeef460bc10e0c9b77da5 /drv_LCDLinux.c | |
parent | 0f91618aa36e77c0c9e8433f28dd3e313003a3db (diff) | |
download | lcd4linux-b3c3e822b6c56387cb3583a771767def47624463.tar.gz |
[lcd4linux @ 2005-02-24 07:06:45 by reinelt]
SimpleLCD driver added
Diffstat (limited to 'drv_LCDLinux.c')
-rw-r--r-- | drv_LCDLinux.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drv_LCDLinux.c b/drv_LCDLinux.c index cf83f9c..fd78ac0 100644 --- a/drv_LCDLinux.c +++ b/drv_LCDLinux.c @@ -1,4 +1,4 @@ -/* $Id: drv_LCDLinux.c,v 1.3 2005/02/24 06:51:40 reinelt Exp $ +/* $Id: drv_LCDLinux.c,v 1.4 2005/02/24 07:06:48 reinelt Exp $ * * driver for the LCD-Linux HD44780 kernel driver * http://lcd-linux.sourceforge.net @@ -24,6 +24,9 @@ * * * $Log: drv_LCDLinux.c,v $ + * Revision 1.4 2005/02/24 07:06:48 reinelt + * SimpleLCD driver added + * * Revision 1.3 2005/02/24 06:51:40 reinelt * LCD-Linux driver GOTO_COST corrected * @@ -149,7 +152,7 @@ static void drv_LL_defchar (const int ascii, const unsigned char *matrix) } -static int drv_LL_start (const char *section, const int quiet) +static int drv_LL_start (const int quiet) { struct lcd_driver buf; @@ -230,7 +233,7 @@ int drv_LL_init (const char *section, const int quiet) YRES = 8; /* pixel height of one char */ CHARS = 8; /* number of user-defineable characters */ CHAR0 = 0; /* ASCII of first user-defineable char */ - GOTO_COST = 1; /* number of bytes a goto command requires */ + GOTO_COST = -1; /* number of bytes a goto command requires */ /* real worker functions */ drv_generic_text_real_write = drv_LL_write; @@ -238,7 +241,7 @@ int drv_LL_init (const char *section, const int quiet) /* start display */ - if ((ret=drv_LL_start (section, quiet))!=0) + if ((ret=drv_LL_start (quiet))!=0) return ret; /* initialize generic text driver */ |