[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/msp430/adc12 HplAdc12P.nc, 1.5, 1.6 Msp430Adc12P.nc, 1.5, 1.6

Kevin Klues klueska at users.sourceforge.net
Thu Apr 17 15:38:36 PDT 2008


Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/msp430/adc12
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv5147/adc12

Modified Files:
	HplAdc12P.nc Msp430Adc12P.nc 
Log Message:
Update to centralize inside one module where all interrupt handlers are signaled from

Index: HplAdc12P.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/msp430/adc12/HplAdc12P.nc,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** HplAdc12P.nc	7 Apr 2008 09:41:55 -0000	1.5
--- HplAdc12P.nc	17 Apr 2008 22:38:34 -0000	1.6
***************
*** 45,48 ****
--- 45,49 ----
  module HplAdc12P {
    provides interface HplAdc12;
+   uses interface HplMsp430InterruptSig as SIGNAL_ADC_VECTOR;
  }
  implementation
***************
*** 119,123 ****
    async command bool HplAdc12.isBusy(){ return ADC12CTL1 & ADC12BUSY; }
  
!   TOSH_SIGNAL(ADC_VECTOR) {
      signal HplAdc12.conversionDone(ADC12IV);
    }
--- 120,124 ----
    async command bool HplAdc12.isBusy(){ return ADC12CTL1 & ADC12BUSY; }
  
!   inline async event void SIGNAL_ADC_VECTOR.fired() {
      signal HplAdc12.conversionDone(ADC12IV);
    }

Index: Msp430Adc12P.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/msp430/adc12/Msp430Adc12P.nc,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Msp430Adc12P.nc	25 Jun 2007 15:47:15 -0000	1.5
--- Msp430Adc12P.nc	17 Apr 2008 22:38:34 -0000	1.6
***************
*** 78,81 ****
--- 78,84 ----
    Msp430Adc12ImplP.CompareA1 -> Msp430TimerC.CompareA1;
  #endif
+ 
+   components HplMsp430InterruptSigP;
+   HplAdc12P.SIGNAL_ADC_VECTOR -> HplMsp430InterruptSigP.SIGNAL_ADC_VECTOR;
  }
  



More information about the Tinyos-2-commits mailing list