CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

MPLABX CCS Error Highlighting

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
kda406



Joined: 17 Sep 2003
Posts: 97
Location: Atlanta, GA, USA

View user's profile Send private message

MPLABX CCS Error Highlighting
PostPosted: Mon Aug 27, 2012 8:11 am     Reply with quote

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
jeremiah



Joined: 20 Jul 2010
Posts: 1346

View user's profile Send private message

PostPosted: Mon Aug 27, 2012 9:31 am     Reply with quote

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



Joined: 21 Jan 2007
Posts: 5

View user's profile Send private message

Re: MPLABX CCS Error Highlighting
PostPosted: Tue Sep 04, 2012 7:14 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group