Set gpio irq priority with tzic_set_irq_prio(int irq, int hi)
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?
Quoted 1 line · 嵌入式工程师
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.
Quoted 15 lines
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
.................................
......................................
Quoted 1 line
Is it right?
No. tzic_set_irq_prio is an internal function to be used by Xenomai. You do not need to use it.
Quoted 4 lines
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai
Signature · 1 line
Gilles.
Then what should change the priority please?
Quoted 37 lines · 在 2013-06-09 01:25:03,"Gilles Chanteperdrix"…
Quoted 1 line · 嵌入式工程师
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.
Quoted 15 lines
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
.................................
......................................Quoted 1 line
Is it right?
No.
tzic_set_irq_priois an internal function to be used by Xenomai. You do not need to use it.Quoted 4 lines
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomaiSignature · 1 line
Gilles.
Quoted 1 line · 嵌入式工程师
Then what should change the priority please?
Again, you can not change the priority, all gpio irqs have the same priority.
Signature · 1 line
Gilles.
Quoted 1 line · 嵌入式工程师
Then what should change the priority please?
And you did not answer my question, what makes you think that one gpio interrupt priority interrupt is lower than another?
Signature · 1 line
Gilles.