]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/adc12/HplAdc12P.nc
Update to centralize inside one module where all interrupt handlers are signaled...
[tinyos-2.x.git] / tos / chips / msp430 / adc12 / HplAdc12P.nc
index aaee9ce507e61846f7c65072b5226979c6a46382..6243739d775ca7628424a3a20dbafa77e7b5596e 100644 (file)
@@ -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);
   }
 }