Does anyone have a simple example including a startup.s file that I
can compile in GCC that demonstrates how to use interrupts? I've
looked at and have tried many examples. I can get the interrupt to
fire once but never again. I think the interrupt isn't being reset
correctly within the ISR. I'm usings the following ISR function. I
can get the ISR to work correctly using the Imagecraft ARM compiler.
Same LED.c file but different startup.s file. The Imagecraft compiler
is doing something behind the scenes that allow the interrupts to
work that I don't understand.
void TimerMatch( void ) __attribute__ ((interrupt ("IRQ")));
void TimerMatch( void )
{
p+=1;
LED_OFF ;
TIMER0_IR = 0x1; // clr Timer interrupt
VICVectAddr = 0xFF;
}
Thanks!Message
Having trouble getting interrupts to work on GNUARM + LPC2106
2005-06-28 by chabely_k99