All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: robert165 <robert165@domain.hid>
Cc: xenomai-help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Problem in irq_handle
Date: Thu, 25 Mar 2010 08:55:53 +0100	[thread overview]
Message-ID: <4BAB1709.9000601@domain.hid> (raw)
In-Reply-To: <63e73d99.3c71.127933ea91c.Coremail.robert165@domain.hid>

robert165 wrote:
> 
> 
> 在2010-03-24 18:22:24,"Gilles Chanteperdrix" <gilles.chanteperdrix@domain.hid> 写道:
>>robert165 wrote:
>>> Hi Jan, I am new to xenomai, I am writing a gpio driver based on
>>> your "RTDM skeleton v1.1". There is a problem that when I complied
>>> and run your skeleton in a at91rm9200 broad with TIMERINT, the output
>>> is not show one line one second but very fast. The problem is still
>>> whenever I changed the following codes in demo_interrupt()
>>> 
>>> #ifdef TIMERINT if (events > XXX){ 
>>> rtdm_event_signal(&ctx->irq_event); event=0; } ... events++;
>>> 
>>> And, it seems likely in my own irq_handle of a gpio irq. When the irq
>>> arrive, the irq_handle repeats many times. Should I mask the same irq
>>> in irq_handle? I did it by write the PIO interrupt mask register, but
>>> no effect.
>>
>>Which interrupt is TIMERINT?
> 
> TIMERINT is timer interrupt.
> 
> It is in the demo of rtdm driver, the sourse is:
> 
> http://www.captain.at/xenomai-real-time-driver-example.php
> 
> Best wishes, 

Yes, but I was wondering which timer interrupt:
- if you are talking about the AT91 "system interrupt", it is shared
between several peripherals, including the DBGU serial port, and can not
be used in a real-time driver for this reason;
- if you are talking about the TC interrupt, it is handled by the
I-pipe, and you can not register a handler for your own driver either.

IOW, what value of TIMERINT do you use?

And I do not really understand why you use the timer interrupt. If you
are interested in interrupts coming from a GPIO, why not register a
handler for the GPIO interrupt?

Regards.

-- 
					    Gilles.



  reply	other threads:[~2010-03-25  7:55 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-19 15:46 [Xenomai-help] crash after termination Stefan Kisdaroczi
2010-03-20 15:53 ` Jan Kiszka
2010-03-22 10:36   ` Stefan Kisdaroczi
2010-03-23  8:00     ` Jan Kiszka
2010-03-23 13:25       ` Stefan Kisdaroczi
2010-03-23 17:06         ` Jan Kiszka
2010-03-23 17:15           ` Gilles Chanteperdrix
2010-03-23 17:23             ` Jan Kiszka
2010-03-24  2:54               ` [Xenomai-help] Problem in irq_handle robert165
2010-03-24 10:22                 ` Gilles Chanteperdrix
2010-03-25  2:55                   ` robert165
2010-03-25  7:55                     ` Gilles Chanteperdrix [this message]
2010-03-25 12:50                       ` robert165
2010-03-25 13:49                         ` Gilles Chanteperdrix
2010-03-25 14:28                           ` Jan Kiszka

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=4BAB1709.9000601@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=robert165@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.