Hi
( To have low radio transmission I used in Makefile : "CFLAGS +=
-DCC2420_DEF_RFPOWER=1" (it works) )
I'm beginner with Tinyos (2.1) and I have not an accurate view of
preemption in Tinyos, though I think it's a critical point to avoid
tricky bug in a near future.
I understood that task runs until completion, and the only thing
(without tosthread) that can preempt them are interrupts (but only
async ones because others (sync) are executed in task mode).
So the only moment when I must be careful about preemption (and
potentially use atomic sections) is in tasks (task void taskName() {
etc }), when a "sync event" can modify a data shared between a task
and this event...
Am I right or do I forget something ?
Must I be careful in command too ? (can I see them as tasks ?) Or in event too ?
Thanks,
Rémi Villé
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help