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 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
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 Messages: 742 Registered: August 2014 |
Senior Member |
|
|
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.
--
Tauno Voipio
|
|
|
Goto Forum:
Current Time: Sat Apr 20 03:51:25 GMT 2024
Powered by FUDForum. Page generated in 0.03893 seconds
|