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

Looking for CDC Library... USB-PIC
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
alwaysfresh



Joined: 04 Jul 2005
Posts: 8

View user's profile Send private message

PostPosted: Thu Jul 07, 2005 9:00 am     Reply with quote

Mark wrote:
You might have a little trouble if there are any pointers to consts but you can work around that.


I have found a couple of const lilke:

void function(const rom char *data);

I would like to know how to handle this. I removed the "rom" because ccs does not know what to do with it. Still doesn't compile through, but I would like to know what are the troubles with pointers to consts.

void function(const char *data);

All advice is very much appreciated Mark,
Andy
Darren Rook



Joined: 06 Sep 2003
Posts: 287
Location: Milwaukee, WI

View user's profile Send private message Send e-mail

PostPosted: Thu Jul 07, 2005 9:13 am     Reply with quote

Just so you know, CCS provides their own CDC library. It's not a port of Microchip's. It's not included in the compiler yet, you have to ask CCS nicely in an e-mail.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Thu Jul 07, 2005 12:09 pm     Reply with quote

alwaysfresh wrote:
Mark wrote:
You might have a little trouble if there are any pointers to consts but you can work around that.


I have found a couple of const lilke:

void function(const rom char *data);

I would like to know how to handle this. I removed the "rom" because ccs does not know what to do with it. Still doesn't compile through, but I would like to know what are the troubles with pointers to consts.

void function(const char *data);

All advice is very much appreciated Mark,
Andy


CCS doesn't support pointers to consts. The easiest fix is to copy the const data to a char array and pass a pointer to the char array.
alwaysfresh



Joined: 04 Jul 2005
Posts: 8

View user's profile Send private message

PostPosted: Fri Jul 08, 2005 6:42 am     Reply with quote

I will try to contact ccs to get the CDC library as mentioned by Darren. Thanks Mark for your always quick responses. If I am not able to get the library from CCS I will try to continue to port the c18 code. I'll post it if I ever get it done, so others may use it.

Andy
alwaysfresh



Joined: 04 Jul 2005
Posts: 8

View user's profile Send private message

PostPosted: Tue Jul 12, 2005 10:14 am     Reply with quote

I got the CDC library from CCS support. If anyone is looking for CDC library for CCS you can email them and ask for it, as Darren has already mentioned.

If someone is familar with the code. I have one problem with the code, when I enable Interrupts-on-change the USB enumeration does not occur. This is done using the default settings of the CDC library provided by CCS. I can't find where the CDC library would be affected by port b settings.

Thanks
Andy
alwaysfresh



Joined: 04 Jul 2005
Posts: 8

View user's profile Send private message

PostPosted: Fri Jul 15, 2005 9:02 am     Reply with quote

My interrupt on-change problem was solved here... http://www.ccsinfo.com/forum/viewtopic.php?t=23627

Andy
PICoHolic



Joined: 04 Jan 2005
Posts: 224

View user's profile Send private message

PostPosted: Thu Mar 30, 2006 2:03 am     Reply with quote

hi alwaysfresh

I was wondering if you were able to translate the rest of the CDC code from C18 to CCS!?!

Or you got it from CCS?

Sorry if I'm late.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Thu Mar 30, 2006 6:13 am     Reply with quote

Didn't you read what he said?!
alwaysfresh wrote:
I got the CDC library from CCS support. If anyone is looking for CDC library for CCS you can email them and ask for it, as Darren has already mentioned.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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