Re: Example "short" of LDD / Parallel port

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>      outb(0x10,par_base+2);
>      outb(0xFF,par_base);
>
> In the following snippet of code don't work.
>
> What should I do? I need to use an interrupt for a training course. I
> could also use User Mode LInux but I don't know how[3]. Not yet. I'd
> like to use the real parallel port.
>

try using outb_p(). i think it can handle slow ports.

I tried:

    outb_p(0x10, par_base+2);
    outb_p(0xFF, par_base);
    barrier();
    udelay(5);

And still, it doesn't work :(

Thanks.

--
http://arhuaco.org/

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux