All of lore.kernel.org
 help / color / mirror / Atom feed
From: 嵌入式工程师 <ericvic@163.com>
To: xenomai@xenomai.org
Subject: [Xenomai] freescale(imx53)  with xenomai patch
Date: Thu, 30 May 2013 23:27:23 +0800 (CST)	[thread overview]
Message-ID: <4cacd80b.2131b.13ef60cf09e.Coremail.ericvic@163.com> (raw)

I set freescale board (imx53) gpio2-14 as  interrupttriggerpin and the kernal with xenomai patch. When i  use Interrupt handling in kernel space like Below code:

#define  MYIRQ  (1*32+14)

int irq=gpio_to_irq(MYIRQ);

staticintisr_code(xnintr_t *intr)

{

rt_intr_disable(&myinterrupt);

...

...
rt_intr_enable(&myinterrupt);

return RT_INTR_HANDLED;

}

.....

sampling_task1...........

sampling_task2...............

static int __init gpio_irq_init(void)
{

rt_intr_create(&myinterrupt, "myinterrupt", irq, isr_code, NULL, 0);

rt_task_create.....sampling_task1

..................sampling_task2

rt_intr_enable(&myinterrupt);


    return 0;
}

I find if the tasks i have created more and more the  ISR (Interruptresponse function)will lose a lot ofresponse .

So I do notknow ifI set theinterrupt priority levelis too low,or what?

If I hadto settheinterrupt priorityreal-time kernel, thenhow can Iset up?

or gpio Interrupt number is right ?

Strong real-timesystem requirements,but I do not know why if it has lots of task it will lose  real-time .

Thanks!



             reply	other threads:[~2013-05-30 15:27 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-30 15:27 嵌入式工程师 [this message]
2013-05-30 18:21 ` [Xenomai] freescale(imx53) with xenomai patch 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                       ` 嵌入式工程师
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=4cacd80b.2131b.13ef60cf09e.Coremail.ericvic@163.com \
    --to=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.