[PARPORT] Sending data on compatible mode

From: Ronnie Arosa (infrac00@des.fi.udc.es)
Date: Wed Jun 06 2001 - 11:59:26 EDT

  • Next message: Al Crowley: "Re: [PARPORT] Backpack Bantam CD Rewriter / bpck6 / redhat 7.1 (help needed)"

    At ieee1284_ops.c, function parport_ieee1284_write_compat() is used to
    send data when compatible mode is on.

    At first it initializes the interface by asserting nInit and SelectIn low.

    After that it waits until the peripheral's nBusy is high (the device is
    busy?):

    unsigned char mask = (PARPORT_STATUS_ERROR
                                         | PARPORT_STATUS_BUSY);

    unsigned char val = (PARPORT_STATUS_ERROR
                                    | PARPORT_STATUS_BUSY
                                     );

    if (!parport_wait_peripheral (port, mask, val))
                 {
                   /* Skip the loop */
                   goto ready;
                  }

    Why did it wait? Shouldn't it wait until nBusy is low??

    Ronnie.

    -- 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 : Wed Jun 06 2001 - 12:04:27 EDT