[Tinyos-help] TimerM component, 2 things unclear

Boldoo boldoodd at yahoo.com
Fri May 26 05:19:30 PDT 2006


Hi

1. Does any one could explain me purpose of
interval_outstanding variable in TimerM component?
When I look at Clock.fire event, then the HandleFire
task is only posted if interval_outstanding is equal
to zero. But I cannot understand how
interval_outstanding become zero. 
2. and why counter value is added to interval to
calculate remained ticks (mTimerList[id].ticksleft) in
command Timer.start? In my opinion to get the remained
ticks simply substract counter value from the interval
value, such as
remained ticks=interval - counter value 

Thanks, Boldoo

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Tinyos-help mailing list