If you link Main->StdControl to a configuration, it will run that component's init and start when Main's init and start are called. But if you don't want this to happen, then you don't link it to Main-StdControl and have to call it explicitly.
(I think but I'm not sure that if Leds.start() were called, the leds' would turn on. So the programmer probably didn't want that to happen and chose to call init by hand and never have start called) On Tue, 18 Jan 2005 20:42:33 +0800 (CST), [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > In Lesson1 of tutorial,I read: > "Concerning used interfaces, it is important to note that subcomponent initialization functions must be explicitly called by the using component. For example, the BlinkM module uses the interface Leds, so Leds.init() is called explicitly in BlinkM.init(). " > > I an confusing.The Module BlinkM is also used SingleTimer,why SingleTimer's initialization is perform by > Main.StdControl -> SingleTimer.StdControl;in file Blink.nc > > // > Maybe this is a simple problem ,but so confusing me,would u like give me explanition? > > 3ks ! > _______________________________________________ > Tinyos-users mailing list > [email protected] > http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users > _______________________________________________ Tinyos-users mailing list [email protected] http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users
