Re: [PARPORT] Accessing parport

From: Tim Waugh (twaugh@redhat.com)
Date: Fri Jun 15 2001 - 10:20:59 EDT

  • Next message: Russel Ingram: "Re: [PARPORT] Re: Attention anyone using the pt driver"

    On Fri, Jun 15, 2001 at 11:18:39AM +0100, Tim Waugh wrote:

    > Does it change any other pins at all? How do you know that the bit
    > currently on the pin is a new one?

    (The answer was 'No, it doesn't.')

    Here is a starting point for you. All it does is spin waiting to see
    the bit change, and then stop. You need to fill in what it needs to
    do after that.

    To build it, grab <URL:ftp://people.redhat.com/twaugh/libieee1284/
    alpha/libieee1284-0.0.0.tar.gz> and install it (./configure, then
    make, then make install).

    Then build the attached program like this:

    gcc -O2 -W -Wall -c -o time.o time.c
    libtool gcc -o timecomm time.o -lieee1284

    If you are running a 2.4 kernel, adjust the permissions on the
    appropriate /dev/parport device, and run timecomm as a normal user.
    If you are running a kernel earlier than 2.4, upgrade. ;-)
    [Alternatively, run it as root. But don't run things as root if you
    can help it.]

    Tim.
    */





    -- To unsubscribe, send mail to: linux-parport-request@torque.net --
    -- with the single word "unsubscribe" in the body of the message. --



    This archive was generated by hypermail 2b29 : Fri Jun 15 2001 - 10:24:33 EDT