No subject
Sun May 18 08:56:28 PDT 2008
typedef struct
{
uint32_t t0;
uint32_t dt;
bool isoneshot : 1;
bool isrunning : 1;
bool _reserved : 6;
} Timer_t;
On Mon, May 19, 2008 at 11:06 AM, Paul Stickney <pstickne at gmail.com> wrote:
> I do not have a solid answer, but some things you may want to consider
> looking at:
> -Maybe you are calling it with a smaller timeout than you suspect or
> earlier than expected
> -The LED might be turned on by other code (internal or external)
>
>
> Paul
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
--
Eric B. Decker
Research Associate
Autonomous Systems Lab
Jack Baskin School of Engineering
UCSC
------=_Part_6968_12683024.1211245340835
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
I've been through the timer code in TinyOS2 pretty throughly. It is very low likelihood (via normal code execution, I am discounting a random memory writer) that a timer can fire before it is started. There is a control cell in the timer structure <b><i>"isrunning"</i></b> that has to be set for the fire signal to happen. This can only get set if the timer is started. Now if this bit is getting set through some other mechanism (like a run away) then all bets are off.<br>
<br>From tos/lib/timer/VirtualizeTimerC.nc.<br><br> typedef struct<br> {<br> uint32_t t0;<br> uint32_t dt;<br> bool isoneshot : 1;<br> bool isrunning : 1;<br> bool _reserved : 6;<br> } Timer_t;<br><br><br>
<br><div class="gmail_quote">On Mon, May 19, 2008 at 11:06 AM, Paul Stickney <<a href="mailto:pstickne at gmail.com">pstickne at gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I do not have a solid answer, but some things you may want to consider<br>
looking at:<br>
-Maybe you are calling it with a smaller timeout than you suspect or<br>
earlier than expected<br>
-The LED might be turned on by other code (internal or external)<br>
<br>
<br>
Paul<br>
_______________________________________________<br>
Tinyos-help mailing list<br>
<a href="mailto:Tinyos-help at millennium.berkeley.edu">Tinyos-help at millennium.berkeley.edu</a><br>
<a href="https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help" target="_blank">https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Eric B. Decker<br>Research Associate<br>Autonomous Systems Lab<br>Jack Baskin School of Engineering<br>UCSC<br>
------=_Part_6968_12683024.1211245340835--
More information about the Tinyos-help
mailing list