LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   paralel port Kernel module programming (https://www.linuxquestions.org/questions/programming-9/paralel-port-kernel-module-programming-854389/)

cankartal 01-05-2011 11:01 AM

paralel port Kernel module programming
 
hi everybody I would like to ask about paralel ports(lighting led) ...
do you have any code to flash led lights with paralel port (device driver programming)
or any lecture about this subject .if there is a working code this would be better ofcourse:D
thanks everbody who read this message and sory about my english:)

theNbomr 01-05-2011 07:19 PM

You should be looking at two separate aspects: the parallel port architecture (assuming you mean some kind of PC architecture host), and kernel module programming. You can find numerous decent sources of information about the PC parallel port online. A Google search for 'parallel port tutorial' yielded several applicable hits.
The definitive resource for Linux kernel device driver programming is Linux Device Drivers, which is available online.
You can experiment from userspace applications, using the ioperm() + inb()/outb() (requires root permissions) functions to exercise your hardware. In fact, if root access isn't an obstacle, you may find it completely adequate to build your entire application as a userspace driver. There are only three IO ports to access. If you only want to use the eight output data bits to drive your LEDs, then you may be able to simply use existing drivers to access the hardware, without requiring root privileges.

--- rod.


All times are GMT -5. The time now is 03:36 PM.