[TinyOS-Help]In Blink.nc, Why we need code "Main.StdControl -> BlinkM.StdControl; "??

Renee Azhen azhen_renee at yahoo.com.cn
Sun Dec 2 02:13:15 PST 2007


Dear all:
  I am newer to TinyOS,  when studying the case Blink, I am quite puzzled about the code "Main.StdControl -> BlinkM.StdControl;" in Blink.nc.
   
  Why we need this?
   
  I think it is because that we need we need to initilize the Timer when this  application inits. So can we delete this code but write a function init() in Timer interface, and in the function init() of BlinkM, we call the timer.init().
   
  Does this work?
  thanks!
  Sam

       
---------------------------------
进入雅虎游戏嘉年华,赢取液晶显示器! 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20071202/5f7fcd17/attachment.htm


More information about the Tinyos-help mailing list