]> git.webhop.me Git - lcd4linux.git/commitdiff
[lcd4linux @ 2001-03-01 22:33:50 by reinelt]
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Thu, 1 Mar 2001 22:33:50 +0000 (22:33 +0000)
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Thu, 1 Mar 2001 22:33:50 +0000 (22:33 +0000)
renamed Raster_flush() to PPM_flush()

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@92 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

Raster.c
lcd4linux.conf.sample
udelay.c

index eeb9aeab3d296171d567a2d1fcf0432e496d1f90..a475e94f593e5e989eae9881620686fc29df7142 100644 (file)
--- a/Raster.c
+++ b/Raster.c
@@ -1,4 +1,4 @@
-/* $Id: Raster.c,v 1.13 2001/03/01 15:11:30 ltoetsch Exp $
+/* $Id: Raster.c,v 1.14 2001/03/01 22:33:50 reinelt Exp $
  *
  * driver for raster formats
  *
  *
  *
  * $Log: Raster.c,v $
+ * Revision 1.14  2001/03/01 22:33:50  reinelt
+ *
+ * renamed Raster_flush() to PPM_flush()
+ *
  * Revision 1.13  2001/03/01 15:11:30  ltoetsch
  * added PNG,Webinterface
  *
 #include <sys/types.h>
 #include <sys/stat.h>
 #ifdef WITH_PNG
-#include <gd.h>
+#include <gd/gd.h>
 #endif
 
 #include "debug.h"
@@ -123,7 +127,8 @@ static unsigned int background=0;
 extern char* output;
 
 
-int Raster_flush (void)
+#ifdef WITH_PPM
+int PPM_flush (void)
 {
   static int seq=0;
   static unsigned char *bitbuf=NULL;
@@ -214,10 +219,10 @@ int Raster_flush (void)
   
   return 0;
 }
-
+#endif
 
 #ifdef WITH_PNG
-int Png_flush (void)
+int PNG_flush (void)
 {
   static int seq=0;
   int xsize, ysize, row, col;
@@ -364,10 +369,10 @@ int Raster_bar (int type, int row, int col, int max, int len1, int len2)
 
 LCD Raster[] = {
 #ifdef WITH_PPM  
-  { "PPM",0,0,0,0,BARS,0,Raster_init,Raster_clear,Raster_put,Raster_bar,NULL,Raster_flush },
+  { "PPM",0,0,0,0,BARS,0,Raster_init,Raster_clear,Raster_put,Raster_bar,NULL,PPM_flush },
 #endif
 #ifdef WITH_PNG
-  { "PNG",0,0,0,0,BARS,0,Raster_init,Raster_clear,Raster_put,Raster_bar,NULL,Png_flush },
+  { "PNG",0,0,0,0,BARS,0,Raster_init,Raster_clear,Raster_put,Raster_bar,NULL,PNG_flush },
 #endif
   { NULL }
 };
index f4166b4c9b413a3ccef2c7b6d3115c1e039d9bde..07c1b11ad4d5af2f97a4e8cf6476400152a1f717 100644 (file)
@@ -1,12 +1,12 @@
-Display LCD2041
-Port /dev/ttyS2
-Speed 19200
-Contrast 160
+#Display LCD2041
+#Port /dev/ttyS2
+#Speed 19200
+#Contrast 160
 
-#Display HD44780
-#Port 0x378
-#Size 16x2
-#Delay 398
+Display HD44780
+Port 0x378
+Size 24x2
+Delay 503
 
 #Display BLC100x
 #Port /dev/ttyS2
@@ -44,11 +44,14 @@ Contrast 160
 #Display SIN
 #Port /dev/tty9
 
-Row1 "Disk%dm $R10dr+dw"
-Row2 "Net %nm $R10nr+nw"
+Row1 "Disk%dm $R14dr+dw"
+Row2 "Net %nm $R14nr+nw"
 Row3 "%s1 %s2 %s3"
 Row4 "%hc %ht %e1"
 
+#Row1 "abcdefghijklmnopqrstuvwxyz"
+#Row2 "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
+
 #Row1 "*** %o %v ***"
 #Row2 "%p CPU  %r MB RAM"
 #Row3 "Busy %cb%% $r10cs+cb"
index 7b0aa34f32408910347ed37efdaf61c9be68d5d4..2c7d3083b90578060655878608841a0ecfb62df0 100644 (file)
--- a/udelay.c
+++ b/udelay.c
@@ -1,4 +1,4 @@
-/* $Id: udelay.c,v 1.2 2000/07/31 10:43:44 reinelt Exp $
+/* $Id: udelay.c,v 1.3 2001/03/01 22:33:50 reinelt Exp $
  *
  * short delays
  *
  *
  *
  * $Log: udelay.c,v $
+ * Revision 1.3  2001/03/01 22:33:50  reinelt
+ *
+ * renamed Raster_flush() to PPM_flush()
+ *
  * Revision 1.2  2000/07/31 10:43:44  reinelt
  *
  * some changes to support kernel-2.4 (different layout of various files in /proc)
@@ -55,7 +59,6 @@
 #include <stdio.h>
 #include <time.h>
 
-#include "debug.h"
 #include "udelay.h"
 
 unsigned long loops_per_usec;