]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/tmirws/sensors/HalWindVaneC.nc
Update HalWindVaneC so that it adds dead zone check support and pin init.
[tinyos-2.x.git] / tos / platforms / tmirws / sensors / HalWindVaneC.nc
index 2125a28e3e796c6428e962e21fbbb1ae23d39d18..46508dbf6cce3ca2c6bf6ff81151b3fcedb6aaa6 100644 (file)
  */
  
 configuration HalWindVaneC {
-  provides interface GeneralIO as WPower;
+  provides {
+    interface GeneralIO as WPower;
+    interface GeneralIO as WDead;
+  }
 }
 implementation {
   components new Msp430GpioC() as WPowerM;
+  components new Msp430GpioC() as WDeadM;
   WPower = WPowerM;
+  WDead = WDeadM;
 
   components HplMsp430GeneralIOC;
   WPowerM -> HplMsp430GeneralIOC.Port57;
+  WDeadM -> HplMsp430GeneralIOC.Port56;
+
+  components MainC, HalWindVaneP;
+  MainC.SoftwareInit -> HalWindVaneP;
+  HalWindVaneP.WPower -> HplMsp430GeneralIOC.Port57;
+  HalWindVaneP.WDead -> HplMsp430GeneralIOC.Port56;
 }