* [Xenomai] Set gpio irq priority with tzic_set_irq_prio(int irq, int hi)
@ 2013-06-08 15:40 嵌入式工程师
2013-06-08 17:25 ` Gilles Chanteperdrix
0 siblings, 1 reply; 5+ messages in thread
From: 嵌入式工程师 @ 2013-06-08 15:40 UTC (permalink / raw)
To: xenomai
Now I use Imx53 gpio2-14 to be a interrupt source ,but I found its priority so lower .
So I use tzic_set_irq_prio(int irq, int hi)
.................................
.............................
MY_GPIO2_14=(1*32+14)+128;
irq=irq_ to_gpio( MY_GPIO2_14);
mxc_tzic_init_irq(IMX53_TZIC_BASE_ADDR);
tzic_set_irq_prio(irq,20);//chang the priority to #30
.................................
......................................
Is it right?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xenomai] Set gpio irq priority with tzic_set_irq_prio(int irq, int hi)
2013-06-08 15:40 [Xenomai] Set gpio irq priority with tzic_set_irq_prio(int irq, int hi) 嵌入式工程师
@ 2013-06-08 17:25 ` Gilles Chanteperdrix
2013-06-09 2:28 ` 嵌入式工程师
0 siblings, 1 reply; 5+ messages in thread
From: Gilles Chanteperdrix @ 2013-06-08 17:25 UTC (permalink / raw)
To: 嵌入式工程师; +Cc: xenomai
On 06/08/2013 05:40 PM, 嵌入式工程师 wrote:
> Now I use Imx53 gpio2-14 to be a interrupt source ,but I found its priority so lower .
How is that? All the gpio irqs have the same priority.
> So I use tzic_set_irq_prio(int irq, int hi)
> .................................
> .............................
>
>
>
>
> MY_GPIO2_14=(1*32+14)+128;
> irq=irq_ to_gpio( MY_GPIO2_14);
> mxc_tzic_init_irq(IMX53_TZIC_BASE_ADDR);
> tzic_set_irq_prio(irq,20);//chang the priority to #30
> .................................
> ......................................
>
>
> Is it right?
No. tzic_set_irq_prio is an internal function to be used by Xenomai. You
do not need to use it.
> _______________________________________________
> Xenomai mailing list
> Xenomai@xenomai.org
> http://www.xenomai.org/mailman/listinfo/xenomai
--
Gilles.
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [Xenomai] Set gpio irq priority with tzic_set_irq_prio(int irq, int hi)
2013-06-08 17:25 ` Gilles Chanteperdrix
@ 2013-06-09 2:28 ` 嵌入式工程师
2013-06-09 7:15 ` Gilles Chanteperdrix
2013-06-09 7:16 ` Gilles Chanteperdrix
0 siblings, 2 replies; 5+ messages in thread
From: 嵌入式工程师 @ 2013-06-09 2:28 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
Then what should change the priority please?
在 2013-06-09 01:25:03,"Gilles Chanteperdrix" <gilles.chanteperdrix@xenomai.org> 写道:
>On 06/08/2013 05:40 PM, 嵌入式工程师 wrote:
>
>> Now I use Imx53 gpio2-14 to be a interrupt source ,but I found its priority so lower .
>
>
>How is that? All the gpio irqs have the same priority.
>
>> So I use tzic_set_irq_prio(int irq, int hi)
>> .................................
>> .............................
>>
>>
>>
>>
>> MY_GPIO2_14=(1*32+14)+128;
>> irq=irq_ to_gpio( MY_GPIO2_14);
>> mxc_tzic_init_irq(IMX53_TZIC_BASE_ADDR);
>> tzic_set_irq_prio(irq,20);//chang the priority to #30
>> .................................
>> ......................................
>>
>>
>> Is it right?
>
>
>No. tzic_set_irq_prio is an internal function to be used by Xenomai. You
>do not need to use it.
>
>> _______________________________________________
>> Xenomai mailing list
>> Xenomai@xenomai.org
>> http://www.xenomai.org/mailman/listinfo/xenomai
>
>
>
>--
> Gilles.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-06-09 7:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-08 15:40 [Xenomai] Set gpio irq priority with tzic_set_irq_prio(int irq, int hi) 嵌入式工程师
2013-06-08 17:25 ` Gilles Chanteperdrix
2013-06-09 2:28 ` 嵌入式工程师
2013-06-09 7:15 ` Gilles Chanteperdrix
2013-06-09 7:16 ` Gilles Chanteperdrix
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.