Hi,

I guess this app is just a forgotten test for a non-existent interface.
Sleep is handled automatically by the task scheduler:
If there's no task, tos/system/SchedulerBasicP.nc will call McuSleepC.nc
(platform dependent, usually /tos/chips/<yourmcu>/McuSleepC.nc via the
sleep command of the McuSleep interface. McuSleepC will find out the lowest
possible sleep state (e.g. don't turn off the main clock if a timer is
using it), and use it.

Andris

On Sat, Apr 4, 2015 at 5:00 AM, Zhihao (Ted) Hong <zhiha...@gmail.com>
wrote:

> Hi,
>
> There are lots of questions on apps/tests/TestSleep application since it
> did not compile. It seems like the problem code still exists in main
> branch.
>
> I just want to know how the sleep management works in tinyos. It is
> managed by developer or scheduler? In tinyos 2.x , in order to invoke sleep
> management from scheduler, what components we should use and is there any
> example application to learn from?
>
> Thanks
>
> _______________________________________________
> 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