linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Serial port monitoring with keyboard LEDs
@ 2002-09-21 21:06 jbradford
  2002-09-22  6:26 ` Brad Hards
  0 siblings, 1 reply; 2+ messages in thread
From: jbradford @ 2002-09-21 21:06 UTC (permalink / raw)
  To: linux-kernel

Hi,

I'm trying to add code to use the keyboard LEDs as serial port Tx/Rx LEDs, somwehat analogous to an external modem, (I.E. for links to things other than modems, that typically don't have LEDs).

I'm using a 2.4.19 kernel as a reference, and looking at putting my code in /drivers/char/serial.c, specifically at the serial_in and serial_out functions, is this the Right Thing or not?  Obviously the LEDs won't actually reflect what is going out on the serial line, because of buffering, etc, and also, what's going to be more useful - just flash on and off for each byte sent, or LED on for 1, LED off for 0 bit?  That would be even more of an approximation to what's actually happening on the serial line, because obviously we're sending a byte at a time to the serial port.

Any pointers to docs I should read would be appreicated :-)

John.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-22  6:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-21 21:06 Serial port monitoring with keyboard LEDs jbradford
2002-09-22  6:26 ` Brad Hards

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).