Hi,

Check this out:
https://github.com/tinyos/tinyos-main/blob/master/tos/platforms/ucmini/SerialResetP.nc
The important part is from line 73 to 78.
Btw, I'm planning to create a watchdog/reset module to /tos/chips/atm128

Andris


On Thu, Mar 21, 2013 at 3:59 AM, He Dajiang (I2R) <h...@i2r.a-star.edu.sg>wrote:

> Hi all,
>
> I want to do software reset of micaz in my tinyos app when some condition
> occurs.
> I searched this list and find this post:
> http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006-November/021118.html,
> which shows the procedure to achieve my goal.
>
> -enable watchdog (check the WDT interface provided by WDTC) with very
> small timeout ( say few ms).
> -Run a loop which consumes fairly more time then the timeout for watchdog.
>
> However, I cannot find wdt WDT interface in tos/interfaces directory and
> any wdtc implemention. I guess it is related to mcu watchdog, am i right?
>
> I also found this post:
> http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2008-November/037055.html,
> and studied its sample nc code. But the code is not complete, and I cannot
> find in tos tree where to locate wdt_enable(WDTO_1S).
>
> Can anyone help on this? Thx.
>
> Cheers
> DJ
>
> Institute for Infocomm Research disclaimer:  "This email is confidential
> and may be privileged. If you are not the intended recipient, please delete
> it and notify us immediately. Please do not copy or use it for any purpose,
> or disclose its contents to any other person. Thank you."
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to