X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fplatforms%2Ftmirws%2Fsensors%2FHalWindVaneC.nc;h=46508dbf6cce3ca2c6bf6ff81151b3fcedb6aaa6;hb=0e41af3c541ee91cbadd45c84c6305e7f70f76c3;hp=2125a28e3e796c6428e962e21fbbb1ae23d39d18;hpb=c62eb5a8f569e1a267d10a4c4aa24e8f5151fb8b;p=tinyos-2.x.git diff --git a/tos/platforms/tmirws/sensors/HalWindVaneC.nc b/tos/platforms/tmirws/sensors/HalWindVaneC.nc index 2125a28e..46508dbf 100644 --- a/tos/platforms/tmirws/sensors/HalWindVaneC.nc +++ b/tos/platforms/tmirws/sensors/HalWindVaneC.nc @@ -34,12 +34,23 @@ */ 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; }