|
|
View previous topic :: View next topic |
Author |
Message |
janet
Joined: 17 Feb 2004 Posts: 23
|
How to make an upcall? |
Posted: Fri Mar 12, 2004 8:48 pm |
|
|
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? |
Posted: Sat Mar 13, 2004 7:00 am |
|
|
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 |
|
|
|
|
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
|