Reference for Enabling GPIO Interrupt

Hi,

I’m trying to work with Interrupts, firstly on GPIO.

Is there a reference code for enabling and working with interrupts on the AM335X? (BBB)

Thank you.

Hi again,

To be more focused, I learned that for setting an interrupt you need to simply set a priority if desired, and necessarily clear the desired INTC_MIRn bit.

However, when the Interrupt is generated, how do I define the Interrupt Handler Routine where I’d write the desired interrupt processing - e.g. turn on a LED when an interrupt is generated?

I mean, how do you know how to name the Interrupt Handler’s function?

Thank you.

Hi again,

To be more focused, I learned that for setting an interrupt you need to simply set a priority if desired, and necessarily clear the desired INTC_MIRn bit.

However, when the Interrupt is generated, how do I define the Interrupt Handler Routine where I’d write the desired interrupt processing - e.g. turn on a LED when an interrupt is generated?

I mean, how do you know how to name the Interrupt Handler’s function?

Hi Matt,

I would suggest you to undertake some Linux Kernel training. Free Electrons have some excellent training available and this one is what you need.

http://free-electrons.com/doc/training/linux-kernel/

Regards,
John