On Mar 20, 2006, at 7:46 AM, David Moss wrote:
All components should be wired directly to Main.StdControl somehow in
configurations, unless there is some compelling reason not to do so.
Architecturally, it is much easier to build large applications without
having to worry if some component's init was called inside the
module of
some random component.. which is why LedsC needs to change.
This is the general approach taken in 2.x. The one exception is in
hardware initialization, which might require a particular ordering
(e.g., calibrate the clock before doing anything else). SplitControl
in 1.x, however, causes a problem, as you'd need to build the
continuation to chain the split-phase Inits. 2.x solves this problem
by separating start/stop from init (there's a separate Init
interface), based on the observation that no component with a
SplitControl actually had a split-phase init(); instead, usually
SplitControl.init() would just post a task to signal initDone().
Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help