Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: Multiple IRQ routines in GCC

2006-05-01 by unity0724

Question:  Could it be the IDEs (Keil/Eclipse) are issuing
different compiler switches??  I can't think of anything else.

If you still cannot get the help from here, may be send a 
post to WinARM Forum:
http://en.mikrocontroller.net/forum/17

There is also some 2xUART ISR code examples in the WinARM package.
I do not know if that can be of anything useful to you.
http://www.siwawi.arubi.uni-
kl.de/avr_projects/arm_projects/index.html

Regards 

--- In lpc2000@yahoogroups.com, vineet jain <vineetrvce@...> wrote:
>
> 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]
>

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.