Re: parport and char driver

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

 



I do mknod also end everything is ok, i know that parport is 0x378
on my pc, but now i check better the Rubini's book and after
i 'll post my problems.

Thanks 

claudio


----- Original Message ----- 
From: "amith" <amith@multitech.co.in>
To: <devel@cfstudio.it>
Sent: Tuesday, April 27, 2004 2:27 AM
Subject: Re: parport and char driver


> devel@cfstudio.it wrote:
> 
> >Hi,
> >i created the module with the basic function, the lkmp also help me,
> >end everything work, but now i want to understand how to use
> >my leds on parallel port creating a new char driver.
> >
> >Thanks to all
> >
> >Claudio Fiorini
> >
> >--
> >Kernelnewbies: Help each other learn about the Linux kernel.
> >Archive:       http://mail.nl.linux.org/kernelnewbies/
> >FAQ:           http://kernelnewbies.org/faq/
> >
> 
>    hi ,
>          now that u r module is working, u would have created a device 
> file with
>         mknod  /dev/your_dev_file_name  c Major Minor
>          number already.     Now in the write function of your module :
>          you should implement the logic to glow the led's like writing 
> to  the port 0x37A i guess not sure check out              Allesandro's 
> book before doing it, u can search the net too to get info on parallel 
> port.After you implement it          you can wrtie to /dev/led as cat " 
> hi there" > /dev/led and your led's would glow.
>          Connect each  LED to the (one end)  DATA pin and GROUND pin 
> (other end) .
>         Hope this helps i have some sample programs at home let me know 
> if u need it.
> 
>  cheers,
> Amith
> 
> 
> 
> >
> >
> 
> 
> 
> 

--
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