*/
/**
- * HAL layer for the wind vane sensor.
+ * HAL layer for the wind vane sensor provides a power control.
*
* @author R. Steve McKown <rsmckown@gmail.com>
*/
-#include "WindVane.h"
-
configuration HalWindVaneC {
- provides interface AsyncGet<uint8_t>;
+ provides {
+ interface GeneralIO as WPower;
+ interface GeneralIO as WDead;
+ }
}
implementation {
- components HalWindVaneP;
- AsyncGet = HalWindVaneP;
+ components new Msp430GpioC() as WPowerM;
+ components new Msp430GpioC() as WDeadM;
+ WPower = WPowerM;
+ WDead = WDeadM;
+
+ components HplMsp430GeneralIOC;
+ WPowerM -> HplMsp430GeneralIOC.Port57;
+ WDeadM -> HplMsp430GeneralIOC.Port56;
- components MainC;
- MainC.SoftwareInit -> HalWindVaneP.Init;
+ components MainC, HalWindVaneP;
+ MainC.SoftwareInit -> HalWindVaneP;
+ HalWindVaneP.WPower -> HplMsp430GeneralIOC.Port57;
+ HalWindVaneP.WDead -> HplMsp430GeneralIOC.Port56;
}