You simply need a forward declaration, as IRQ_Handler() is not yet defined
when trying to use it. You can also change the order (place the definiton
of IRQ_Handler() in front of init_micro())
Regards
Herbert
At 20:09 19.03.2006 +0000, you wrote:
>Hi
>
>
>When trying to compile this code on keil I get the errore next to it
>This part of code related to interupts
>
>"
>void init_micro()
>{
> IODIR1=0x02000000;//P1.25 is output and used for RGB out
> PINSEL0=0x0000A05A;//P0.2 & P0.3 are used as SCL and SDA
> //P0.1 used as EINT0
> //P0.7 used as EINT2
>
> VICIntSelect= 0x00004000;//EINT0 used as FIQ
> VICIntEnable= 0x00014000;//enable interrupt EINT0 & EINT2
>
> VICVectCntl0= 0x00000030;//EINT2 has periority 0 within the
>IRQ
> VICVectAddr0= (unsigned long)IRQ_Handler;
>}
>void FIQ_Handler (void) __fiq
>{
> if(!first_time)
> first_time=1;
> else
> {
> first_time=0;
> LineCount++;
> }
> EXTINT = 0x00000001; // Clear the peripheral interrupt flag
>}
>void IRQ_Handler (void) __irq
>{
> LineCount=1;
> EXTINT = 0x00000004; // Clear the peripheral interrupt flag
>}
>"
>and here's the errors
>
>TEST_INT.C(41): error C67: 'IRQ_Handler': undefined identifier
>TEST_INT.C(58): error C53: redefinition of 'IRQ_Handler': different
>function attributes
>TEST_INT.C(58): error C53: redefinition of 'IRQ_Handler':
>different '__irq/__fiq' attribute value
>TEST_INT.C(59): error C53: redefinition of 'IRQ_Handler': different
>return types
>
>Do you have any suggetions
>
>Salam
>Hossam Alzomor
>www.i-g.org
>
>
>
>
>
>
>SPONSORED LINKS
><http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&c=4&s=95&.sig=mfaAujKZXA2Z_vxre9sGnQ>Microcontrollers
><http://groups.yahoo.com/gads?t=ms&k=Microprocessor&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&c=4&s=95&.sig=9jjd2D3GOLIESVQssLmLsA>Microprocessor
><http://groups.yahoo.com/gads?t=ms&k=Intel+microprocessors&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&c=4&s=95&.sig=OMnZuqMZX95mgutt4B-tDw>Intel
>microprocessors
><http://groups.yahoo.com/gads?t=ms&k=Pic+microcontrollers&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&c=4&s=95&.sig=Malspbd0T4Rq3M4Q0nHrfw>Pic
>microcontrollers
>
>
>----------
>YAHOO! GROUPS LINKS
>
> * Visit your group "<http://groups.yahoo.com/group/lpc2000>lpc2000"
> on the web.
> *
> * To unsubscribe from this group, send an email to:
> *
> <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe>lpc2000-unsubscribe@yahoogroups.com
>
> *
> * Your use of Yahoo! Groups is subject to the
> <http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service.
>
>
>----------
----------------------------------------------------------
demmel products
Radnitzkygasse 43
A-1100 Vienna / Austria / Europe
Voice: +43-1-6894700-0
Fax: +43-1-6894700-40
Email: dh@...
WWW: http://www.demmel.com
[Non-text portions of this message have been removed]Message
Re: [lpc2000] IRQ problem
2006-03-19 by Herbert Demmel
Attachments
- No local attachments were found for this message.