All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Antoine Nourry <nourry@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Keyboard IRQ
Date: Thu, 26 Mar 2009 22:24:45 +0100	[thread overview]
Message-ID: <49CBF29D.5020500@domain.hid> (raw)
In-Reply-To: <49CBEDE2.5040106@domain.hid>

Antoine Nourry wrote:
> Sorry for my blurred question, i just wanted to point out the fact that 
> i managed to use most of Xenomai API functionalities when i was working 
> on an RTDM USB driver. However during my scattered tests i never managed 
> to catch properly IRQ 1 (i use a standard keyboard here). The goal is to 
> measure time reaction from the moment an image appears to the keypress 
> event.  Several months ago i asked you how to achieve this and wasn't 
> aware at all of the domain switching when calling non realtime functions 
> while being in RT mode. Thus i mixed non realtime and realtime functions 
> in the same realtime task... and among them there were different 
> keyboard event catch functions whichever are all non RT. I want a 
> deterministic program that could rely on Xenomai source clock and on its 
> 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 
> totally wrong.

I think I already told you that, but using Xenomai to do that is
completely overkill.

> 
> Secondly, i just made some new tests from the irq user example and 
> rt_intr_wait returns -38 (is it ENOSYS = function not implemented ?) Do 
> i have to compile some functionality in the kernel or during Xenomai 
> install ?

Yes, handling interrupts in user-space with the native and posix skins
is discouraged. You should be using the RTDM skin. But if you absolutely
want to use these services, you have to enable them in the kernel
configuration.


-- 
					    Gilles.


  reply	other threads:[~2009-03-26 21:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-26 17:09 [Xenomai-help] Keyboard IRQ Antoine Nourry
2009-03-26 17:37 ` Gilles Chanteperdrix
2009-03-26 21:04   ` Antoine Nourry
2009-03-26 21:24     ` Gilles Chanteperdrix [this message]
2009-03-26 21:52       ` Antoine Nourry
2009-03-26 21:58         ` Gilles Chanteperdrix
2009-03-26 22:49           ` Antoine Nourry
2009-03-26 22:55             ` Gilles Chanteperdrix

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=49CBF29D.5020500@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=nourry@domain.hid \
    --cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.