All of lore.kernel.org
 help / color / mirror / Atom feed
From: 嵌入式工程师 <ericvic@163.com>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] freescale(imx53)  with xenomai patch
Date: Wed, 5 Jun 2013 22:34:41 +0800 (CST)	[thread overview]
Message-ID: <2bb4890b.c7e9.13f14c2da98.Coremail.ericvic@163.com> (raw)
In-Reply-To: <51AC8209.4060507@xenomai.org>

Now ,I suddenly noticed,P and V operation must not be interrupted operation. Before I did not know my colleague spent rt_sem_p () and rt_sem_v ().
Today, I suddenly saw it.
I also would like to ask, rt_alarm_inquire is available in rt_sem_v () operation, timing counts?
Because they are in the case with a timer but also a very accurate timekeeping pv operation.
在 2013-06-03 19:46:17,"Gilles Chanteperdrix" <gilles.chanteperdrix@xenomai.org> 写道:
>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.



  reply	other threads:[~2013-06-05 14:34 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
2013-06-05 14:34                       ` 嵌入式工程师 [this message]
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=2bb4890b.c7e9.13f14c2da98.Coremail.ericvic@163.com \
    --to=ericvic@163.com \
    --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.