Hello,
I need some help in writing IRQ routines in GCC, it works the way I wrote for KEIL GCC but doesn't with the Eclipse one.
Stubs are placed in the sample code for Eclipse IDE:
Excerpt from the code:
void IRQ_Routine (void) __attribute__ ((interrupt("IRQ")));
and then way below:
void IRQ_Routine (void) {
while (1) ;
}
I need to write two routines as IRQ for RTC and UART0
How do I write them.
These are the prototypes I am using for both and way below are the definitions:
void Uart0_IRQ (void) __attribute__ ((interrupt("IRQ")));
void RTC_IRQ (void) __attribute__ ((interrupt("IRQ")));
.
.
.
.
void Uart0_IRQ (void)
{ VICVectAddr = 0x00000000;
}
void RTC_IRQ (void)
{unsigned int value;
if (ILR & 0x00000001)
{ value = (CTIME0 & SEC_Mask) >> SEC_Bits;
TO_ASCII(value); // send the ascii value to serial port....UART0
ILR = 0x00000001;
}
VICVectAddr = 0x00000000;
}
Please suggest.
Thanks in advance,
Vineet.
---------------------------------
Get amazing travel prices for air and hotel in one click on Yahoo! FareChase
[Non-text portions of this message have been removed]Message
Multiple IRQ routines in GCC
2006-05-01 by vineet jain
Attachments
- No local attachments were found for this message.