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 support@ccsinfo.com

How to make an upcall?

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



Joined: 17 Feb 2004
Posts: 23

View user's profile Send private message

How to make an upcall?
PostPosted: Fri Mar 12, 2004 8:48 pm     Reply with quote

Hi,

I wish to know the concept of upcall-ing, how it works and some examples. Please kindly let me know how to do it or point me to relevant tutorial web site (i couldn't find any tutorial about upcall). Thanks!
Ttelmah
Guest







Re: How to make an upcall?
PostPosted: Sat Mar 13, 2004 7:00 am     Reply with quote

janet wrote:
Hi,

I wish to know the concept of upcall-ing, how it works and some examples. Please kindly let me know how to do it or point me to relevant tutorial web site (i couldn't find any tutorial about upcall). Thanks!

The normal name for this in a 'PC' context, is a 'callback'. A routine is handed a address, and generates a callback to this address, when some event occurs. This normally only has context on a multi-tasking OS (which CCS C is not, unless you write your own multi-tasking kernel). Technically, you could probably generate something of this nature, using a 'time sliced' event checker, and then storing the address of a function, and calling this, when a particular event is met. However this is not really a particularly useful concept on a simple processor like the PIC.

Best Wishes
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