2008-11-27 03:17:39     GPIO interrupt detect on falling AND rising edge

Document created by Aaronwu Employee on Aug 8, 2013
Version 1Show Document
  • View in full screen mode

2008-11-27 03:17:39     GPIO interrupt detect on falling AND rising edge

roger froysaa (NORWAY)

Message: 65886   

 

Hi.

 

I see that in include/linux/irq.h there is define like:

 

#define IRQ_TYPE_EDGE_BOTH (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)

 

Will such a dual-edge interrupt trigger  work on a GPIO-based interrupt? On any GPIO-bank etc?

 

 

 

Rgds,

 

RF

 

 

QuoteReplyEditDelete

 

 

2008-11-27 03:45:38     Re: GPIO interrupt detect on falling AND rising edge

Michael Hennerich (GERMANY)

Message: 65888   

 

Sure, all Blackfin derivatives support BOTH EDGE triggered interrupts in Hardware, except the BF54x family.

These processors only support Level and Single Edge (rising or falling) triggered interrupts. There is a generic software workaround in place simulating both edge triggered interrupts by inverting the active edge every time an interrupt happens.

 

Take a look here:

http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:interrupts

 

 

Typically all Blackfin GPIOs can be used as interrupts - there are only a very few limitations on some Blackfin derivatives.

Take a look into Blackfin include/mach/irq.h and see what ports are defines there.

 

-Michael

 

 

QuoteReplyEditDelete

 

 

2008-11-27 06:19:44     Re: GPIO interrupt detect on falling AND rising edge

roger froysaa (NORWAY)

Message: 65904   

 

Thanks for the info!

 

I will be using a CM-BF548 so this was interesting

 

 

/RF

Attachments

    Outcomes