X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fmsp430%2Fadc12%2FMsp430Adc12ClientAutoRVGC.nc;h=246f5860859b37a6ed64169723c21951a984444f;hb=1dbd19fe0179302afdf6fde2b945fb9354aab0f6;hp=9c732a5027968267c70566b64c06c3fc4ac94453;hpb=e5d237c8133ac502718e4fe545add4368bfa60db;p=tinyos-2.x.git diff --git a/tos/chips/msp430/adc12/Msp430Adc12ClientAutoRVGC.nc b/tos/chips/msp430/adc12/Msp430Adc12ClientAutoRVGC.nc index 9c732a50..246f5860 100644 --- a/tos/chips/msp430/adc12/Msp430Adc12ClientAutoRVGC.nc +++ b/tos/chips/msp430/adc12/Msp430Adc12ClientAutoRVGC.nc @@ -45,6 +45,7 @@ generic configuration Msp430Adc12ClientAutoRVGC() provides { interface Resource; interface Msp430Adc12SingleChannel; + interface Msp430Adc12MultiChannel; } uses interface AdcConfigure; } implementation { @@ -55,7 +56,11 @@ generic configuration Msp430Adc12ClientAutoRVGC() }; Resource = Msp430RefVoltArbiterP.ClientResource[ID]; Msp430Adc12SingleChannel = Msp430Adc12P.SingleChannel[ID]; + Msp430Adc12MultiChannel = Msp430Adc12P.MultiChannel[ID]; Msp430RefVoltArbiterP.AdcResource[ID] -> Msp430Adc12P.Resource[ID]; - AdcConfigure = Msp430RefVoltArbiterP.Config[ID]; + + components new Msp430Adc12ConfAlertC(); + AdcConfigure = Msp430Adc12ConfAlertC.ConfUp; + Msp430RefVoltArbiterP.Config[ID] -> Msp430Adc12ConfAlertC.ConfSub; }