All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Hubert Talbot" <Hubert.Talbot@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: [Xenomai-help] Rép. : Re:  Too much Interrupt
Date: Wed, 09 Apr 2008 11:36:45 -0400	[thread overview]
Message-ID: <47FCAA4E0200000100193210@domain.hid> (raw)
In-Reply-To: <18428.55796.407005.6130@domain.hid>

There is no more problem (sorry for omitting advice).

It was not related to Xenomai. The problem was with the I/O card. 

rt_intr_* calls were not sufficient. I had to make I/O card API calls too.

Something like this:

while (!end)
{
    rt_intr_wait();

    // disable interrupts
    rt_intr_disable();
    InterruptEnable(board, FALSE);    <-------------- this call was not there when the problem was

    processing...

    // reenable interrupts
    rt_intr_enable();
    InterruptEnable(board, TRUE);
} 


Thanks

Hubert


>>> Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> 2008-04-09 11:00:04 >>>
Hubert Talbot wrote:
 > Hi,
 > 
 > I work with Sensoray S626 IO card.
 > 
 > My test consists in generating signal with a calibrator, one per second during 5 seconds.
 > 
 > I use rt_intr_wait and I get about 50000 interrupts, I have to filter them to count only the good ones (5).
 > 
 > The provided demo does not behave this way. It receives only the ones generated by the calibrator. 
 > 
 > Where do the ~50000 interrupts come from?

A stupid advice: did you check rt_intr_wait return value ? Maybe
something is badly configured and rt_intr_wait returns an error 50000
times ?

-- 


					    Gilles.



      parent reply	other threads:[~2008-04-09 15:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-19 19:41 [Xenomai-help] Too much Interrupt Hubert Talbot
2008-04-09 15:00 ` Gilles Chanteperdrix
2008-04-09 15:06   ` Breno Carneiro Pinheiro
2008-04-09 15:13     ` Gilles Chanteperdrix
2008-04-09 15:36   ` Hubert Talbot [this message]

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=47FCAA4E0200000100193210@domain.hid \
    --to=hubert.talbot@domain.hid \
    --cc=gilles.chanteperdrix@xenomai.org \
    --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.