From dbf5d92605a9db10e3e3cb154d03a515c5d5c5af Mon Sep 17 00:00:00 2001 From: reinelt Date: Sun, 8 May 2005 04:32:45 +0000 Subject: [lcd4linux @ 2005-05-08 04:32:43 by reinelt] CodingStyle added and applied git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@547 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- drv_SimpleLCD.c | 334 +++++++++++++++++++++++++++++--------------------------- 1 file changed, 172 insertions(+), 162 deletions(-) (limited to 'drv_SimpleLCD.c') diff --git a/drv_SimpleLCD.c b/drv_SimpleLCD.c index 017b5da..872eff5 100644 --- a/drv_SimpleLCD.c +++ b/drv_SimpleLCD.c @@ -1,4 +1,4 @@ -/* $Id: drv_SimpleLCD.c,v 1.3 2005/04/20 05:49:21 reinelt Exp $ +/* $Id: drv_SimpleLCD.c,v 1.4 2005/05/08 04:32:44 reinelt Exp $ * * driver for a simple serial terminal. * @@ -22,6 +22,9 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * $Log: drv_SimpleLCD.c,v $ + * Revision 1.4 2005/05/08 04:32:44 reinelt + * CodingStyle added and applied + * * Revision 1.3 2005/04/20 05:49:21 reinelt * Changed the code to add some VT100-compatible control sequences (see the comments above). * A configfile boolean option 'VT100_Support' (default to 1) indicate if the display in @@ -110,39 +113,43 @@ #include "drv_generic_serial.h" -static char Name[]="SimpleLCD"; -static char *backbuffer=0; -static int backbuffer_size=0; -static int vt100_mode=0; -static unsigned char bar_char=0; +static char Name[] = "SimpleLCD"; +static char *backbuffer = 0; +static int backbuffer_size = 0; +static int vt100_mode = 0; +static unsigned char bar_char = 0; /****************************************/ /*** hardware dependant functions ***/ /****************************************/ /** No clear function on SimpleLCD : Just send CR-LF * number of lines **/ -void drv_SL_simple_clear (void) +void drv_SL_simple_clear(void) { - char cmd[2]; - int i; - cmd[0] = '\r' ; cmd[1] = '\n'; - for (i=0;i