lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Wed, 15 Dec 2010 11:56:26 +0100
From:	Philippe De Muyter <phdm@...qel.be>
To:	linux-kernel@...r.kernel.org
Subject: timer Q : request callback 2 ms after interrupt to drop RTS on
	RS485

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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ