aboutsummaryrefslogtreecommitdiffstats
path: root/drv_Cwlinux.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-03-19 09:17:46 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-03-19 09:17:46 +0000
commit42fbc61ad0f0f9d165c19a0e8aa33b9d5f7f303b (patch)
tree3523a6246f1e1db0a5bf493df438d791dd624824 /drv_Cwlinux.c
parentfc469b900f7693d96fae49cf20d628473dff7f29 (diff)
downloadlcd4linux-42fbc61ad0f0f9d165c19a0e8aa33b9d5f7f303b.tar.gz
[lcd4linux @ 2004-03-19 09:17:46 by reinelt]
removed the extra 'goto' function, row and col are additional parameters of the write() function now. git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@404 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_Cwlinux.c')
-rw-r--r--drv_Cwlinux.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/drv_Cwlinux.c b/drv_Cwlinux.c
index 9757069..349aa54 100644
--- a/drv_Cwlinux.c
+++ b/drv_Cwlinux.c
@@ -1,4 +1,4 @@
-/* $Id: drv_Cwlinux.c,v 1.3 2004/02/14 11:56:17 reinelt Exp $
+/* $Id: drv_Cwlinux.c,v 1.4 2004/03/19 09:17:46 reinelt Exp $
*
* new style driver for Cwlinux display modules
*
@@ -23,6 +23,11 @@
*
*
* $Log: drv_Cwlinux.c,v $
+ * Revision 1.4 2004/03/19 09:17:46 reinelt
+ *
+ * removed the extra 'goto' function, row and col are additional parameters
+ * of the write() function now.
+ *
* Revision 1.3 2004/02/14 11:56:17 reinelt
* M50530 driver ported
* changed lots of 'char' to 'unsigned char'
@@ -95,12 +100,15 @@ static MODEL Models[] = {
// *** hardware dependant functions ***
// ****************************************
-static void drv_CW_goto (int row, int col)
+static void drv_CW_write (int row, int col, unsigned char *data, int len)
{
char cmd[6]="\376Gxy\375";
+
cmd[2]=(char)col;
cmd[3]=(char)row;
- drv_generic_serial_write(cmd, 5);
+ drv_generic_serial_write (cmd, 5);
+
+ drv_generic_serial_write (data, len);
}
@@ -279,8 +287,7 @@ int drv_CW_init (char *section)
GOTO_COST = 3; // number of bytes a goto command requires
// real worker functions
- drv_generic_text_real_write = drv_generic_serial_write;
- drv_generic_text_real_goto = drv_CW_goto;
+ drv_generic_text_real_write = drv_CW_write;
switch (Protocol) {
case 1: