Re: Finding Hardware Interrupt Number

Allon Stern <[email protected]> Thu, 12 Jun 2008 16:32:25 -0400
Newsgroups gmane.comp.hardware.motorola.microcontrollers.coldfire
Message-ID <[email protected]>
On Jun 12, 2008, at 4:14 PM, Fahd Abidi wrote:
>
> Interrupt 69 did not trigger as shown above. I assumed that the all  
> the
> interrupt sources should be enabled in the uClinux kernel, is this
> correct to assume? Or do I need to modify the kernel to enable disable
> the interrupt thru the interrupt mask register? Does any one know  
> where
> this needs to be done, or if it needs to be done?

As I noted in my earlier email, I did need to do this on the 5282.
My code looks like this (NOTE: ON 5282!)

     /* We have to set up the edge port module to source interrupts  
from the IRQ line */
     *MCF5282_EPORT_EPIER = 0xFE;   // bit #7; enable interrupts on  
IRQ 7
     *(u32 *)(MCF5282_INTC0+MCFINTC_IMRL) &= ~0x00000080; // unmask  
IRQ7 interrupt

HTH.
-
allon