From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: 嵌入式工程师 <ericvic@163.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] freescale(imx53) with xenomai patch
Date: Mon, 03 Jun 2013 13:46:17 +0200 [thread overview]
Message-ID: <51AC8209.4060507@xenomai.org> (raw)
In-Reply-To: <7b78f3e.c5e4.13f092364eb.Coremail.ericvic@163.com>
On 06/03/2013 10:24 AM, 嵌入式工程师 wrote:
> I have set the trigger type with Low trigger and without disable and enable codes.
> if the interrupt is triggered the hardware will set the gpio with High 。
> It has the same problem.
> I do not why ?
Ok, could you tell me:
- what type you set for your interrupt (with irq_set_irq_type)?
- what is the shape of the signal?
Sorry for stating the obvious, but if the gpio is toggled every
500milliseconds and you set the irq type to level (low or high), the
interrupts is considered to be asserted by the interrupt controller
during 500 milliseconds, and so your interrupt handler is called
continuously during 500 milliseconds. In that case, what you would be
interested in would be to call:
irq_set_irq_type(irq, IRQ_TYPE_EDGE_BOTH)
for instance.
Regards.
--
Gilles.
next prev parent reply other threads:[~2013-06-03 11:46 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-30 15:27 [Xenomai] freescale(imx53) with xenomai patch 嵌入式工程师
2013-05-30 18:21 ` Gilles Chanteperdrix
2013-05-31 1:34 ` 嵌入式工程师
2013-05-31 1:36 ` 嵌入式工程师
2013-05-31 5:32 ` Gilles Chanteperdrix
2013-05-31 5:54 ` 嵌入式工程师
2013-06-01 8:41 ` 嵌入式工程师
2013-06-01 10:16 ` Gilles Chanteperdrix
2013-06-03 1:36 ` 嵌入式工程师
2013-06-03 1:47 ` 嵌入式工程师
2013-06-03 6:03 ` Gilles Chanteperdrix
2013-06-03 6:31 ` 嵌入式工程师
2013-06-03 8:24 ` 嵌入式工程师
2013-06-03 11:46 ` Gilles Chanteperdrix [this message]
2013-06-05 14:34 ` 嵌入式工程师
2013-06-05 18:31 ` Gilles Chanteperdrix
-- strict thread matches above, loose matches on Subject: below --
2013-05-31 1:50 嵌入式工程师
2013-06-01 8:43 嵌入式工程师
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=51AC8209.4060507@xenomai.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=ericvic@163.com \
--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.