Home » Language IDEs » C / C++ IDE (CDT) » Type expected '=', ',', ';', 'asm' or '__attribute__' before '__irq(hello my self savan chauhan, i use eclipse kepler and mars also both have similar kind of error with interrupt function,when i use __irq that time eclipse throws error.)
|Re: Type expected '=', ',', ';', 'asm' or '__attribute__' before '__irq [message #1719994 is a reply to message #1719923]
||Wed, 13 January 2016 15:56
Registered: October 2012
Gosh. You did something; don't bother saying what; got an error; give no clue what it might be; and still want answers? |
What is throwing the error?
What is the error?
Is it in your title: "Type expected '=', ',', ';', 'asm' or '__attribute__' before '__irq"?
Are we to assume interrupts.c is the actual code you are using? If so, I noticed you commented out "__irq". Why was it there in the first place? Whose code is it? What's it for? GCC doesn't know what it means. Maybe you want another compiler (like for ARM)?
A little more information is needed like
stating what is the exact error message is;
what you are actually doing: running? debugging?;
where and how you are seeing the message.
Posting it would be nice.
We shouldn't have to guess.
[Updated on: Wed, 13 January 2016 15:57]
Report message to a moderator
|Re: Type expected '=', ',', ';', 'asm' or '__attribute__' before '__irq [message #1720003 is a reply to message #1719994]
||Wed, 13 January 2016 16:23
| Tauno Voipio
Registered: August 2014
Let's guess anyway:|
- The target is an ARM7TDMI cross-compile for LPC213x,
- The code tries to be an UART driver for MODBUS.
- There is something fishy with the included headers,
preventing the compiler to recognize the __irq macro,
or this is a port from e.g. 8051 code, and the interrupt
handler has to be configured differently.
It would help guessing if:
- The host operating system were told,
- The cross-compiler make and version were told,
- The compilation switches were told.
Current Time: Sun Aug 14 07:48:33 GMT 2022
Powered by FUDForum
. Page generated in 0.01254 seconds