[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/msp430/adc12 AdcC.nc, 1.1.2.14, 1.1.2.15

Jan-Hinrich Hauer janhauer at users.sourceforge.net
Fri Jul 7 08:13:32 PDT 2006


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

Modified Files:
      Tag: tinyos-2_0_devel-BRANCH
	AdcC.nc 
Log Message:
Rolling back to Revision 1.1.2.13.
After discussing the issue in the tos2-wg we decided that ADC readings are not shifted by the ADC stack (but sensor components on top).

Index: AdcC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/msp430/adc12/Attic/AdcC.nc,v
retrieving revision 1.1.2.14
retrieving revision 1.1.2.15
diff -C2 -d -r1.1.2.14 -r1.1.2.15
*** AdcC.nc	1 Jul 2006 18:26:04 -0000	1.1.2.14
--- AdcC.nc	7 Jul 2006 15:13:27 -0000	1.1.2.15
***************
*** 129,133 ****
    {
      call Resource.release[owner]();
!     signal Read.readDone[owner](SUCCESS, (value << 4));
    }
  
--- 129,133 ----
    {
      call Resource.release[owner]();
!     signal Read.readDone[owner](SUCCESS, value);
    }
  
***************
*** 140,144 ****
        post readDone();
      } else { // was ReadNow.read request
!       signal ReadNow.readDone[client](SUCCESS, (data << 4));
      }
      return SUCCESS;
--- 140,144 ----
        post readDone();
      } else { // was ReadNow.read request
!       signal ReadNow.readDone[client](SUCCESS, data);
      }
      return SUCCESS;
***************
*** 228,236 ****
    {
      error_t nextRequest;
-     uint16_t i;
      
      if (!resultBuf){
-       for (i=0; i<length/2; i++)
-         buf[i] = (buf[i] << 4);
        value = length;
        resultBuf = buf;
--- 228,233 ----



More information about the Tinyos-2-commits mailing list