Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] Re: Multiple IRQ routines in GCC

2006-05-01 by vineet jain

I meant the toolchains these two IDE's use. Ideally the way IRQ interrupts are called should be the same as both use GCC.

Also how do you plan to write IRQ routine for let's say:

an RTC and a UART.

beacuse in the sample code they talk about an IRQ stub ( mentioned in earlier mail ). 

If anyone's using GCC, please send an sample code for activating two IRQ interrupts.

Thanks and regards,
Vineet.
 
unity0724 <unity0724@...> wrote:    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]
 >
 
 
 
 
            

        SPONSORED LINKS   
                                                    Microcontrollers                                       Microprocessor                                       Intel microprocessors                                                                 
      
---------------------------------
   YAHOO! GROUPS LINKS 
 
    
    Visit your group "lpc2000" on the web.
    
    To unsubscribe from this group, send an email to:
 lpc2000-unsubscribe@yahoogroups.com
    
    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
 
    
---------------------------------
 
 
     

		
---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

[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.