diff options
author | reinelt <> | 2004-06-20 10:09:56 +0000 |
---|---|---|
committer | reinelt <> | 2004-06-20 10:09:56 +0000 |
commit | 1d9ddbf5fa1210cbc323ac73a7a212289dd95769 (patch) | |
tree | c9fe5fa4426d7334d8486a3a7e59c64a43d2ef9e /drv_MilfordInstruments.c | |
parent | 4f15e68bb72bea1ad96689c49ff65228ee677346 (diff) | |
download | lcd4linux-1d9ddbf5fa1210cbc323ac73a7a212289dd95769.tar.gz |
[lcd4linux @ 2004-06-20 10:09:52 by reinelt]
'const'ified the whole source
Diffstat (limited to 'drv_MilfordInstruments.c')
-rw-r--r-- | drv_MilfordInstruments.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/drv_MilfordInstruments.c b/drv_MilfordInstruments.c index 8e9e6bb..396ce86 100644 --- a/drv_MilfordInstruments.c +++ b/drv_MilfordInstruments.c @@ -1,4 +1,4 @@ -/* $Id: drv_MilfordInstruments.c,v 1.9 2004/06/06 06:51:59 reinelt Exp $ +/* $Id: drv_MilfordInstruments.c,v 1.10 2004/06/20 10:09:54 reinelt Exp $ * * driver for Milford Instruments 'BPK' piggy-back serial interface board * for standard Hitachi 44780 compatible lcd modules. @@ -27,6 +27,10 @@ * * * $Log: drv_MilfordInstruments.c,v $ + * Revision 1.10 2004/06/20 10:09:54 reinelt + * + * 'const'ified the whole source + * * Revision 1.9 2004/06/06 06:51:59 reinelt * * do not display end splash screen if quiet=1 @@ -118,7 +122,7 @@ static void drv_MI_clear (void) } -static void drv_MI_write (int row, int col, unsigned char *data, int len) +static void drv_MI_write (const int row, const int col, const unsigned char *data, const int len) { char cmd[2] = "\376x"; char ddbase = 128; @@ -135,7 +139,7 @@ static void drv_MI_write (int row, int col, unsigned char *data, int len) } -static void drv_MI_defchar (int ascii, unsigned char *matrix) +static void drv_MI_defchar (const int ascii, const unsigned char *matrix) { int i; char cmd[10]="\376x"; @@ -150,7 +154,7 @@ static void drv_MI_defchar (int ascii, unsigned char *matrix) } -static int drv_MI_start (char *section, int quiet) +static int drv_MI_start (const char *section, const int quiet) { int i; char *model; @@ -225,7 +229,7 @@ int drv_MI_list (void) // initialize driver & display -int drv_MI_init (char *section, int quiet) +int drv_MI_init (const char *section, const int quiet) { WIDGET_CLASS wc; int ret; @@ -285,7 +289,7 @@ int drv_MI_init (char *section, int quiet) // close driver & display -int drv_MI_quit (int quiet) { +int drv_MI_quit (const int quiet) { info("%s: shutting down.", Name); |