Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/25/01 21:51
Read: times


 
#12771 - RE: Function called from timer interupt
Are you asking whether or not function A can be interrupted by an interrupt and, within that interrupt, you can call function A?

If so, that depends on whether your compiler allows re-entrant code. If it does, you can. If it doesn't, you can't. This also may be a compiler switch.

If you are working in assembly it depends on how you handle your registers and stack within the function in question.

Personally, I try to do as little as possible in an interrupt. Rather, try having the interrupt save the information you need and then process it later--outside of the interrupt.

Craig Steiner


List of 11 messages in thread
TopicAuthorDate
Function called from timer interupt            01/01/70 00:00      
RE: Function called from timer interupt            01/01/70 00:00      
RE: Function called from timer interupt            01/01/70 00:00      
RE: Function called from timer interupt            01/01/70 00:00      
RE: Function called from timer interupt            01/01/70 00:00      
RE: Function called from timer interupt            01/01/70 00:00      
RE: Function called from timer interupt            01/01/70 00:00      
RE: Function called from timer interupt            01/01/70 00:00      
RE: Function called from timer interupt            01/01/70 00:00      
RE: Function called from timer interupt            01/01/70 00:00      
RE: Function called from timer interupt            01/01/70 00:00      

Back to Subject List