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

#USE RS232 issue defining STREAM - V4.120

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



Joined: 27 Aug 2011
Posts: 22
Location: Baltimore, MD

View user's profile Send private message

#USE RS232 issue defining STREAM - V4.120
PostPosted: Wed Aug 31, 2011 10:32 am     Reply with quote

Apparently you are supposed to be able to specify a stream id with the #use rs232 compiler directive.

Having multiple streams with a single uart is usefull because it provides a method of changing partity at run time... you simply select the appropriate stream with putc, getc, etc.

I get a compiler error when I add STREAM=1 to the use RS232 statement

USE parameter value is out of range "STREAM"

Any ideas?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Aug 31, 2011 11:12 am     Reply with quote

Don't use integers. It has to be a symbolic name. You don't need to
have a separate #define statement for it. Just put the identifier in
the #use rs232() statement as shown below:
Code:

#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, ERRORS, stream=STREAM1)

You can use any name. It doesn't have to be "Stream something".
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