So there's a small point in nesc/tinyos programming that is a little unclear
to me as of now which involves how events are "called" and the entire split
phase operation.
1) Am I allowed to have a return XXX at the end of an event? If so who
does this value get returned to?
a. If so, is it bad programming practice to leave this out? I have
noted in various demo apps that this is not a very consistent methodology, I
tried looking in the c code, but all the the parsing from nesc gives me a
headache J
2) Am I allowed to call two events i.e.:
event void Timer0.fired() {
call ReadBroadband.read();
call ReadIR.read();
}
If so, does the "call" drill all the way down to the actual function which
initiates a read immediately, or is there an event queue separate from the
task queue? Which is executed at the end of the event?
Do these events execute in order?
3) Can events pre-empt other events? If I have just been put in my
ReadBroadband.readDone and I receive another even how is this handled? What
happens if I receive an event during an interrupt handler (or async event)?
Those were all the oddities I could come up with at the moment, I hope I
haven't just missed something obvious in the docs!
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help