On Aug 23, 2010, at 11:47 AM, [email protected] wrote: > Hello, > > After reading a TinyOS tutorial I have 4 remaining questions: > > 1.) Why do you need the = operator for wiring? > Does the configuration as well as the module provide and use > interfaces? > Why is the provides interface Leds; outside of the implementation? > > configuration LedsC { > provides interface Leds; > } > implementation { > components LedsP, PlatformLedsC; > Leds = LedsP.Leds; > LedsP.Init <- PlatformLedsC.Init; > LedsP.Led0 -> PlatformLedsC.Led0; > LedsP.Led1 -> PlatformLedsC.Led1; > LedsP.Led2 -> PlatformLedsC.Led2; > } > > 2.) What is auto-wiring? > > 4.) Commands and events are synchronous by default? > The execution of an event can't be interrupted by a task or another > event because they are sync > by default? If the commands or events as aync, they can be > interrupted by a task?
Please take a look at the TinyOS programming guide. Phil _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
