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!
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai