mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Philippe De Muyter <phdm@macqel.be>
To: linux-kernel@vger.kernel.org
Subject: timer Q : request callback 2 ms after interrupt to drop RTS on RS485
Date: Wed, 15 Dec 2010 11:56:26 +0100	[thread overview]
Message-ID: <20101215105626.GA3083@frolo.macqel> (raw)

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

                 reply	other threads:[~2010-12-15 10:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101215105626.GA3083@frolo.macqel \
    --to=phdm@macqel.be \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®