mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* timer Q : request callback 2 ms after interrupt to drop RTS on RS485
@ 2010-12-15 10:56 Philippe De Muyter
  0 siblings, 0 replies; only message in thread
From: Philippe De Muyter @ 2010-12-15 10:56 UTC (permalink / raw)
  To: linux-kernel

Hello linux timer experts

I need to arm a timer to expire about 1.5 ms after an interrupt.

How can I do that ?

Thanks in advance

Philippe

More context for the interested ones : I need to deactivate the RTS signal
on a serial line, but I get only TxREADY interrupts, not TxEMPTY ones.
Knowing the hardware and baud rate involved I know how much time is needed
to flush the last bytes and bits and I need to drop RTS as soon as the
last bit is sent.
Of course, in the timer callback I'll do a small amount of busy waiting
to be sure TxEMPTY state is reached.

-- 
Philippe De Muyter  phdm at macqel dot be  Tel +32 27029044
Macq Electronique SA  rue de l'Aeronef 2  B-1140 Bruxelles  Fax +32 27029077

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-12-15 10:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-15 10:56 timer Q : request callback 2 ms after interrupt to drop RTS on RS485 Philippe De Muyter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®