On Mar 15, 2007, at 5:00 AM, Liron Elmaleh wrote:

Hi,
I would like to know if there are function calls to the scheduler in TinyOS2. For example - I would like to call some sort of yield() function in the middle of a task, so I could release the CPU and come back later (when the task is scheduled next), starting right when I stopped (right after the yield() call)

No, you can't. There's a single stack.

If you care about just the program counter (but not the stack), then something like protothreads might work for you.

Phil
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to