LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-05-2011, 11:01 AM   #1
cankartal
LQ Newbie
 
Registered: Dec 2010
Posts: 1

Rep: Reputation: 0
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
thanks everbody who read this message and sory about my english
 
Old 01-05-2011, 07:19 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VirtualBox problem USB to paralel port converter issue hobz Linux - Networking 2 09-09-2010 02:38 AM
Kernel module programming Error : module not found coolguy_iiit Programming 1 07-30-2006 07:23 AM
Kernel Module programming Config Programming 2 03-24-2004 04:48 PM
kernel module programming shellcode Programming 1 02-05-2004 11:43 PM
cdrom via paralel port iceman47 Linux - Hardware 1 01-18-2003 11:07 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration