-/* $Id: USBLCD.c,v 1.5 2002/08/19 07:36:29 reinelt Exp $
+/* $Id: USBLCD.c,v 1.6 2002/08/19 07:52:19 reinelt Exp $
*
* Driver for USBLCD ( see http://www.usblcd.de )
* This Driver is based on HD44780.c
*
*
* $Log: USBLCD.c,v $
+ * Revision 1.6 2002/08/19 07:52:19 reinelt
+ * corrected type declaration of (*defchar)()
+ *
* Revision 1.5 2002/08/19 07:36:29 reinelt
*
* finished bar.c, USBLCD is the first driver that uses the generic bar functions
return 0;
}
-static void USBLCD_define_char (int ascii, char *buffer)
+void USBLCD_define_char (int ascii, char *buffer)
{
USBLCD_command (0x40|8*ascii);
USBLCD_write (buffer, 8);
-/* $Id: bar.c,v 1.2 2002/08/19 07:36:29 reinelt Exp $
+/* $Id: bar.c,v 1.3 2002/08/19 07:52:19 reinelt Exp $
*
* generic bar handling
*
*
*
* $Log: bar.c,v $
+ * Revision 1.3 2002/08/19 07:52:19 reinelt
+ * corrected type declaration of (*defchar)()
+ *
* Revision 1.2 2002/08/19 07:36:29 reinelt
*
* finished bar.c, USBLCD is the first driver that uses the generic bar functions
*
* int bar_draw (int type, int row, int col, int max, int len1, int len2)
*
- * int bar_process (void)
+ * int bar_process (void(*defchar)(int ascii, char *matrix))
*
* int bar_peek (int row, int col)
*
}
-static void define_chars (int(*defchar)(int ascii, char *matrix))
+static void define_chars (void(*defchar)(int ascii, char *matrix))
{
int c, i, j;
char buffer[8];
}
-int bar_process (int(*defchar)(int ascii, char *matrix))
+int bar_process (void(*defchar)(int ascii, char *matrix))
{
int n, s;
-/* $Id: bar.h,v 1.2 2002/08/19 07:36:29 reinelt Exp $
+/* $Id: bar.h,v 1.3 2002/08/19 07:52:19 reinelt Exp $
*
* generic bar handling
*
*
*
* $Log: bar.h,v $
+ * Revision 1.3 2002/08/19 07:52:19 reinelt
+ * corrected type declaration of (*defchar)()
+ *
* Revision 1.2 2002/08/19 07:36:29 reinelt
*
* finished bar.c, USBLCD is the first driver that uses the generic bar functions
void bar_clear(void);
void bar_add_segment(int len1, int len2, int type, int ascii);
int bar_draw (int type, int row, int col, int max, int len1, int len2);
-int bar_process (int(*defchar)(int ascii, char *matrix));
+int bar_process (void(*defchar)(int ascii, char *matrix));
int bar_peek (int row, int col);
#endif