From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <49CBEDE2.5040106@domain.hid> Date: Thu, 26 Mar 2009 22:04:34 +0100 From: Antoine Nourry MIME-Version: 1.0 References: <49CBB6C5.5000407@domain.hid> <49CBBD4B.7070800@domain.hid> In-Reply-To: <49CBBD4B.7070800@domain.hid> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Xenomai-help] Keyboard IRQ List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: xenomai@xenomai.org Sorry for my blurred question, i just wanted to point out the fact that=20 i managed to use most of Xenomai API functionalities when i was working=20 on an RTDM USB driver. However during my scattered tests i never managed=20 to catch properly IRQ 1 (i use a standard keyboard here). The goal is to=20 measure time reaction from the moment an image appears to the keypress=20 event. Several months ago i asked you how to achieve this and wasn't=20 aware at all of the domain switching when calling non realtime functions=20 while being in RT mode. Thus i mixed non realtime and realtime functions=20 in the same realtime task... and among them there were different=20 keyboard event catch functions whichever are all non RT. I want a=20 deterministic program that could rely on Xenomai source clock and on its=20 IRQ handling in order to know when to take the measure. I first want to know if this could be a good way to do so or if i'm=20 totally wrong. Secondly, i just made some new tests from the irq user example and=20 rt_intr_wait returns -38 (is it ENOSYS =3D function not implemented ?) Do= =20 i have to compile some functionality in the kernel or during Xenomai=20 install ? Thank you again, Antoine Gilles Chanteperdrix a =E9crit : > Antoine Nourry wrote: > =20 >> Hi, >> i need to catch a key press as soon as it is released. What is the bes= t=20 >> solution ? >> I tried to catch keyboard irq (#1) but failed. The ISR doesn't seem to= =20 >> launch... >> >> I made an RTDM driver successfully (with USB4RT) but never managed to = do=20 >> that simple thing... >> =20 > > I do not understand your mail. If you use an USB keyboard, then it will > certainly not trigger the IRQ 1. > > And given the precision of your question, all we can answer is that you > should read the RTDM driver API documentation. > > See: > http://www.catb.org/~esr/faqs/smart-questions.html > > =20