X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fmsp430%2Fadc12%2FHplAdc12P.nc;h=6243739d775ca7628424a3a20dbafa77e7b5596e;hb=26d7f5a6239a0f8fbb76588b3562654823acd43f;hp=aaee9ce507e61846f7c65072b5226979c6a46382;hpb=944bc0204b7ce507a6e3fc46fb845f55545b237b;p=tinyos-2.x.git diff --git a/tos/chips/msp430/adc12/HplAdc12P.nc b/tos/chips/msp430/adc12/HplAdc12P.nc index aaee9ce5..6243739d 100644 --- a/tos/chips/msp430/adc12/HplAdc12P.nc +++ b/tos/chips/msp430/adc12/HplAdc12P.nc @@ -44,6 +44,7 @@ module HplAdc12P { provides interface HplAdc12; + uses interface HplMsp430InterruptSig as SIGNAL_ADC_VECTOR; } implementation { @@ -118,7 +119,7 @@ implementation async command bool HplAdc12.isBusy(){ return ADC12CTL1 & ADC12BUSY; } - TOSH_SIGNAL(ADC_VECTOR) { + inline async event void SIGNAL_ADC_VECTOR.fired() { signal HplAdc12.conversionDone(ADC12IV); } }