[PD-cvs] externals/zexy/src lpt.c,1.6,1.7
IOhannes m zmölnig
zmoelnig at users.sourceforge.net
Wed Sep 28 15:06:00 CEST 2005
Update of /cvsroot/pure-data/externals/zexy/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31986
Modified Files:
lpt.c
Log Message:
added link to a ressource on the ppdev-interface
Index: lpt.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/lpt.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** lpt.c 28 Sep 2005 12:20:37 -0000 1.6
--- lpt.c 28 Sep 2005 13:05:57 -0000 1.7
***************
*** 16,24 ****
/*
! (c) 2000:forum::für::umläute:2004
write to the parallel port
extended to write to any port (if we do have permissions)
thanks to
Olaf Matthes: porting to WindozeNT/2000/XP
--- 16,30 ----
/*
! (c) 2000:forum::für::umläute:2005
write to the parallel port
extended to write to any port (if we do have permissions)
+ 2005-09-28: write to devices instead of hardware-addresses
+ http://people.redhat.com/twaugh/parport/html/ppdev.html
+ TODO: don't lock when multiple objects refer to the same device
+ TODO: allow readonly/writeonly access
+ TODO: test for timeouts,...
+
thanks to
Olaf Matthes: porting to WindozeNT/2000/XP
***************
*** 241,248 ****
}
if(x->device>0)
! post("connected to device %s", devname);
else
! post("connected to port %x in mode '%s'", x->port, (x->mode==MODE_IOPL)?"iopl":"ioperm");
! if (x->mode==MODE_IOPL)post("warning: this might seriously damage your pc...");
#else
error("zexy has been compiled without [lpt]!");
--- 247,254 ----
}
if(x->device>0)
! post("lpt: connected to device %s", devname);
else
! post("lpt: connected to port %x in mode '%s'", x->port, (x->mode==MODE_IOPL)?"iopl":"ioperm");
! if (x->mode==MODE_IOPL)post("lpt-warning: this might seriously damage your pc...");
#else
error("zexy has been compiled without [lpt]!");
More information about the Pd-cvs
mailing list