Skip to contentSkip to conversation

Set gpio irq priority with tzic_set_irq_prio(int irq, int hi)

Xenomai 嵌入式工程师 2 participants 5 messages Jun 8, 2013 – Jun 9, 2013

lore
Share & tools
lore
#0 lore raw

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?

#1 lore raw
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.
#2 lore raw

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_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.
#3 lore raw
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.
#4 lore raw
In reply to 嵌入式工程师
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.