View previous topic :: View next topic |
Author |
Message |
kda406
Joined: 17 Sep 2003 Posts: 97 Location: Atlanta, GA, USA
|
MPLABX CCS Error Highlighting |
Posted: Mon Aug 27, 2012 8:11 am |
|
|
Is there a "CCS.h" header file that I have not found, which provides prototypes for the compiler supported functions? Has someone in the forum made one?
The last few months I have been doing my XC32 and XC24 development in MPLabX (v1.30). After some minor growing pains, I have come to love this new environment and will not be going back to MPLab or the CCS IDE.
Today I'm starting a PIC18 project using CCS in MPLabX. So far so good except for one thing: error highlighting.
As I have designed my code to be highly generic and portable, and have extended my code to convert mostly to ANSI naming conventions, mostly with #define macros, it looks like the MPLabX + CCS scenario will work fairly well for me.
However, CCS specific code that the CCS compilers recognize but the IDE does not are highlighted on many valid lines as errors like this:
output_low(PIN_IO_CLK);
#include <CCS.h> would solve this problem (if they have one) and it would allow more folks to move to this new IDE.
Thanks,
Kyle |
|
![](templates/subSilver/images/spacer.gif) |
jeremiah
Joined: 20 Jul 2010 Posts: 1328
|
|
Posted: Mon Aug 27, 2012 9:31 am |
|
|
None of that prevents using MPLABX with CCS. The syntax highlighting has no impact on compilation whatsoever. So all those red lines are just annoyances, but won't prevent people from moving to the new IDE if they want to.
As far as CCS.h, I've never made a global file for it, but usually I use less than 10 of the built in functions, so I just add them to my main .h file as forward declarations.
It's also worth noting that your forward declarations don't have to match the actual parameter lists. When I tried it, void output_high(); was enough to stop the syntax highlighting. |
|
![](templates/subSilver/images/spacer.gif) |
strasserh
Joined: 21 Jan 2007 Posts: 5
|
Re: MPLABX CCS Error Highlighting |
Posted: Tue Sep 04, 2012 7:14 am |
|
|
You are right, Kyle, that sux. If you import an older project you get errors for nothing. Do you have meanwhile an ccs.h file or an other solutions how you can learn the editor the missing keywords?
thx str _________________ Helmut Strasser |
|
![](templates/subSilver/images/spacer.gif) |
|