Skip to content

Commit

Permalink
[lcd4linux @ 2004-06-01 06:45:28 by reinelt]
Browse files Browse the repository at this point in the history
some Fixme's processed
documented some code

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@456 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
  • Loading branch information
reinelt committed Jun 1, 2004
1 parent a581675 commit 8dc94db
Show file tree
Hide file tree
Showing 18 changed files with 241 additions and 71 deletions.
14 changes: 9 additions & 5 deletions drv_Crystalfontz.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $Id: drv_Crystalfontz.c,v 1.20 2004/05/31 05:38:02 reinelt Exp $
/* $Id: drv_Crystalfontz.c,v 1.21 2004/06/01 06:45:28 reinelt Exp $
*
* new style driver for Crystalfontz display modules
*
Expand All @@ -23,6 +23,11 @@
*
*
* $Log: drv_Crystalfontz.c,v $
* Revision 1.21 2004/06/01 06:45:28 reinelt
*
* some Fixme's processed
* documented some code
*
* Revision 1.20 2004/05/31 05:38:02 reinelt
*
* fixed possible bugs with user-defined chars (clear high bits)
Expand Down Expand Up @@ -161,7 +166,7 @@ static double Fan_RPM[4] = {0.0,};
static double Temperature[32] = {0.0,};


// Fixme:
// Fixme: GPO's not yet implemented
// static int GPO[8];
static int GPOS;

Expand Down Expand Up @@ -864,7 +869,7 @@ static void plugin_fan_pwm (RESULT *result, int argc, RESULT *argv[])
}
}

// Fixme: other plugins for Fans, Temmperature sensors, ...
// Fixme: other plugins for Fans, Temperature sensors, ...



Expand Down Expand Up @@ -919,13 +924,12 @@ int drv_CF_init (char *section)
break;
case 2:
CHAR0 = 0; // ASCII of first user-defineable char
GOTO_COST = 20; // there is no goto on 633
GOTO_COST = 999; // there is no goto on 633
drv_generic_text_real_write = drv_CF_write2;
drv_generic_text_real_defchar = drv_CF_defchar23;
break;
case 3:
CHAR0 = 0; // ASCII of first user-defineable char
// Fixme:
GOTO_COST = 3; // number of bytes a goto command requires
drv_generic_text_real_write = drv_CF_write3;
drv_generic_text_real_defchar = drv_CF_defchar23;
Expand Down
9 changes: 7 additions & 2 deletions drv_Cwlinux.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $Id: drv_Cwlinux.c,v 1.10 2004/05/31 21:05:13 reinelt Exp $
/* $Id: drv_Cwlinux.c,v 1.11 2004/06/01 06:45:29 reinelt Exp $
*
* new style driver for Cwlinux display modules
*
Expand All @@ -23,6 +23,11 @@
*
*
* $Log: drv_Cwlinux.c,v $
* Revision 1.11 2004/06/01 06:45:29 reinelt
*
* some Fixme's processed
* documented some code
*
* Revision 1.10 2004/05/31 21:05:13 reinelt
*
* fixed lots of bugs in the Cwlinux driver
Expand Down Expand Up @@ -103,7 +108,7 @@ static char Name[]="Cwlinux";
static int Model;
static int Protocol;

// Fixme:
// Fixme: GPO's not yet implemented
// static int GPO[8];
static int GPOS;

Expand Down
11 changes: 8 additions & 3 deletions drv_HD44780.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $Id: drv_HD44780.c,v 1.23 2004/05/31 05:38:02 reinelt Exp $
/* $Id: drv_HD44780.c,v 1.24 2004/06/01 06:45:29 reinelt Exp $
*
* new style driver for HD44780-based displays
*
Expand Down Expand Up @@ -29,6 +29,11 @@
*
*
* $Log: drv_HD44780.c,v $
* Revision 1.24 2004/06/01 06:45:29 reinelt
*
* some Fixme's processed
* documented some code
*
* Revision 1.23 2004/05/31 05:38:02 reinelt
*
* fixed possible bugs with user-defined chars (clear high bits)
Expand Down Expand Up @@ -211,7 +216,7 @@ static unsigned char SIGNAL_GPO;
static int UseBusy = 0;


// Fixme
// Fixme: GPO's not yet implemented
static int GPOS;
// static int GPO=0;

Expand Down Expand Up @@ -556,7 +561,7 @@ static int drv_HD_brightness (int brightness)
}


// Fixme
// Fixme: GPO's
#if 0
static void drv_HD_setGPO (int bits)
{
Expand Down
11 changes: 8 additions & 3 deletions drv_M50530.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $Id: drv_M50530.c,v 1.6 2004/05/31 05:38:02 reinelt Exp $
/* $Id: drv_M50530.c,v 1.7 2004/06/01 06:45:29 reinelt Exp $
*
* new style driver for M50530-based displays
*
Expand All @@ -23,6 +23,11 @@
*
*
* $Log: drv_M50530.c,v $
* Revision 1.7 2004/06/01 06:45:29 reinelt
*
* some Fixme's processed
* documented some code
*
* Revision 1.6 2004/05/31 05:38:02 reinelt
*
* fixed possible bugs with user-defined chars (clear high bits)
Expand Down Expand Up @@ -96,7 +101,7 @@ static unsigned char SIGNAL_IOC1;
static unsigned char SIGNAL_IOC2;
static unsigned char SIGNAL_GPO;

// Fixme
// Fixme: GPO's not yet implemented
static int GPOS;
// static int GPO=0;

Expand Down Expand Up @@ -172,7 +177,7 @@ static void drv_M5_defchar (int ascii, unsigned char *matrix)
}


// Fixme
// Fixme: GPO's
#if 0
static void drv_M5_setGPO (int bits)
{
Expand Down
11 changes: 8 additions & 3 deletions drv_MatrixOrbital.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $Id: drv_MatrixOrbital.c,v 1.27 2004/05/31 21:23:16 reinelt Exp $
/* $Id: drv_MatrixOrbital.c,v 1.28 2004/06/01 06:45:29 reinelt Exp $
*
* new style driver for Matrix Orbital serial display modules
*
Expand All @@ -23,6 +23,11 @@
*
*
* $Log: drv_MatrixOrbital.c,v $
* Revision 1.28 2004/06/01 06:45:29 reinelt
*
* some Fixme's processed
* documented some code
*
* Revision 1.27 2004/05/31 21:23:16 reinelt
*
* some cleanups in the MatrixOrbital driver
Expand Down Expand Up @@ -169,7 +174,7 @@ static char Name[]="MatrixOrbital";
static int Model;
static int Protocol;

// Fixme:
// Fixme: GPO's not yet implemented
// static int GPO[8];
static int GPOS;

Expand Down Expand Up @@ -379,7 +384,7 @@ static int drv_MO_rpm (int num)
debug ("rpm: buffer[5]=0x%01x", buffer[5]);
debug ("rpm: buffer[6]=0x%01x", buffer[6]);

// Fixme:
// Fixme: RPM calculations???
RPM[num-1] = 42;

return RPM[num-1];
Expand Down
8 changes: 6 additions & 2 deletions drv_T6963.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $Id: drv_T6963.c,v 1.4 2004/02/24 05:55:04 reinelt Exp $
/* $Id: drv_T6963.c,v 1.5 2004/06/01 06:45:30 reinelt Exp $
*
* new style driver for T6963-based displays
*
Expand All @@ -23,6 +23,11 @@
*
*
* $Log: drv_T6963.c,v $
* Revision 1.5 2004/06/01 06:45:30 reinelt
*
* some Fixme's processed
* documented some code
*
* Revision 1.4 2004/02/24 05:55:04 reinelt
*
* X11 driver ported
Expand Down Expand Up @@ -98,7 +103,6 @@ static unsigned char SIGNAL_WR;

unsigned char *Buffer1, *Buffer2;

// Fixme:
static int bug=0;


Expand Down
26 changes: 24 additions & 2 deletions drv_generic_graphic.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
*
*
* $Log: drv_generic_graphic.c,v $
* Revision 1.7 2004/06/01 06:45:30 reinelt
*
* some Fixme's processed
* documented some code
*
* Revision 1.6 2004/03/03 03:47:04 reinelt
* big patch from Martin Hejl:
* - use qprintf() where appropriate
Expand Down Expand Up @@ -54,12 +59,29 @@

/*
*
* exported fuctions:
* exported functions:
*
* int drv_generic_graphic_init (char *section, char *driver);
* initializes the generic graphic driver
*
* int drv_generic_graphic_draw (WIDGET *W);
* renders Text widget into framebuffer
* calls drv_generic_graphic_real_blit()
*
* Fixme: document me!
* int drv_generic_graphic_icon_draw (WIDGET *W);
* renders Icon widget into framebuffer
* calls drv_generic_graphic_real_blit()
*
* int drv_generic_graphic_bar_draw (WIDGET *W);
* renders Bar widget into framebuffer
* calls drv_generic_graphic_real_blit()
*
* int drv_generic_graphic_quit (void);
* closes generic graphic driver
*
*/


#include "config.h"

#include <stdlib.h>
Expand Down
14 changes: 6 additions & 8 deletions drv_generic_graphic.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $Id: drv_generic_graphic.h,v 1.2 2004/02/18 06:39:20 reinelt Exp $
/* $Id: drv_generic_graphic.h,v 1.3 2004/06/01 06:45:30 reinelt Exp $
*
* generic driver helper for graphic displays
*
Expand All @@ -23,6 +23,11 @@
*
*
* $Log: drv_generic_graphic.h,v $
* Revision 1.3 2004/06/01 06:45:30 reinelt
*
* some Fixme's processed
* documented some code
*
* Revision 1.2 2004/02/18 06:39:20 reinelt
* T6963 driver for graphic displays finished
*
Expand All @@ -34,13 +39,6 @@
*
*/

/*
*
* exported fuctions:
*
* Fixme: document me!
*
*/

#ifndef _DRV_GENERIC_GRAPHIC_H_
#define _DRV_GENERIC_GRAPHIC_H_
Expand Down
17 changes: 11 additions & 6 deletions drv_generic_serial.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $Id: drv_generic_serial.c,v 1.10 2004/05/31 21:05:13 reinelt Exp $
/* $Id: drv_generic_serial.c,v 1.11 2004/06/01 06:45:30 reinelt Exp $
*
* generic driver helper for serial and usbserial displays
*
Expand All @@ -23,6 +23,11 @@
*
*
* $Log: drv_generic_serial.c,v $
* Revision 1.11 2004/06/01 06:45:30 reinelt
*
* some Fixme's processed
* documented some code
*
* Revision 1.10 2004/05/31 21:05:13 reinelt
*
* fixed lots of bugs in the Cwlinux driver
Expand Down Expand Up @@ -81,21 +86,21 @@
*
* exported fuctions:
*
* int drv_generic_serial_open (char *driver, char *port, speed_t speed);
* int drv_generic_serial_open (char *section, char *driver, unsigned int flags)
* opens the serial port
*
* int drv_generic_serial_poll (unsigned char *string, int len)
* reads from the serial or USB port
* without retry
*
* int drv_generic_serial_read (unsigned char *string, int len);
* int drv_generic_serial_read (unsigned char *string, int len);
* reads from the serial or USB port
* with retry
*
* void drv_generic_serial_write (unsigned char *string, int len);
* void drv_generic_serial_write (unsigned char *string, int len);
* writes to the serial or USB port
*
* int drv_generic_serial_close (void);
* int drv_generic_serial_close (void);
* closes the serial port
*
*/
Expand Down Expand Up @@ -133,7 +138,7 @@ static int Device=-1;
// *** generic serial/USB communication ***
// ****************************************

pid_t drv_generic_serial_lock_port (char *Port)
static pid_t drv_generic_serial_lock_port (char *Port)
{
char lockfile[256];
char tempfile[256];
Expand Down
14 changes: 6 additions & 8 deletions drv_generic_serial.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $Id: drv_generic_serial.h,v 1.4 2004/05/28 13:51:42 reinelt Exp $
/* $Id: drv_generic_serial.h,v 1.5 2004/06/01 06:45:30 reinelt Exp $
*
* generic driver helper for serial and usbserial displays
*
Expand All @@ -23,6 +23,11 @@
*
*
* $Log: drv_generic_serial.h,v $
* Revision 1.5 2004/06/01 06:45:30 reinelt
*
* some Fixme's processed
* documented some code
*
* Revision 1.4 2004/05/28 13:51:42 reinelt
*
* ported driver for Beckmann+Egle Mini-Terminals
Expand Down Expand Up @@ -50,13 +55,6 @@
*
*/

/*
*
* exported fuctions:
*
* Fixme: document me!
*
*/

#ifndef _DRV_GENERIC_SERIALH_
#define _DRV_GENERIC_SERIAL_H_
Expand Down
Loading

0 comments on commit 8dc94db

Please sign in to comment.