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

fprintf/fgets

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







fprintf/fgets
PostPosted: Mon Jun 08, 2009 4:28 am     Reply with quote

I'm a bit confused. I've found a topic that says that fprintf uses interrupt routine and 64bytes buffer to send a string.
And as I understand fputs will just halt everything until string transmitted.

So how do receive functions work? (gets/fgets)
Do they use an interrupt routine as well or not?

Thank you.
Ttelmah
Guest







PostPosted: Mon Jun 08, 2009 5:12 am     Reply with quote

It sounds as if you are taking the 'topic' out of context.
None of the CCS routines use interrupt functions 'out of the box'. Printf, _can_ use a buffered interrupt driven routine, by using something like ex_stisr, and telling printf to use this as it's output routine.
The USB putc/getc routines, are buffered by default.

Best Wishes
Alex
Guest







PostPosted: Mon Jun 08, 2009 5:28 am     Reply with quote

Thank you.
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