On 06/03/2013 10:24 AM, 嵌入式工程师 wrote:

> I have set the trigger type with Low trigger  and without disable and enable 
> codes.
> if the interrupt is triggered the hardware will set the gpio with High 。
> It has the same problem.
> I do not why ?


Ok, could you tell me:
- what type you set for your interrupt (with irq_set_irq_type)?
- what is the shape of the signal?

Sorry for stating the obvious, but if the gpio is toggled every
500milliseconds and you set the irq type to level (low or high), the
interrupts is considered to be asserted by the interrupt controller
during 500 milliseconds, and so your interrupt handler is called
continuously during 500 milliseconds. In that case, what you would be
interested in would be to call:
 irq_set_irq_type(irq, IRQ_TYPE_EDGE_BOTH)
for instance.

Regards.

-- 
                                                                Gilles.

_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Reply via email to