[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/ds2745 HplDS2745.nc, 1.1.2.2, 1.1.2.3 HplDS2745LogicP.nc, 1.1.2.3, 1.1.2.4

Philip Buonadonna philipb at users.sourceforge.net
Fri Aug 11 15:44:55 PDT 2006


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

Modified Files:
      Tag: tinyos-2_0_devel-BRANCH
	HplDS2745.nc HplDS2745LogicP.nc 
Log Message:
Bugfixes to DS2745 components

Index: HplDS2745.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/ds2745/Attic/HplDS2745.nc,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -d -r1.1.2.2 -r1.1.2.3
*** HplDS2745.nc	11 Aug 2006 18:53:24 -0000	1.1.2.2
--- HplDS2745.nc	11 Aug 2006 22:44:53 -0000	1.1.2.3
***************
*** 47,51 ****
     * @return SUCCESS if the set will be performed
     */
!   command error_t setConfigReg( uint8_t val );
  
    /**
--- 47,51 ----
     * @return SUCCESS if the set will be performed
     */
!   command error_t setConfig( uint8_t val );
  
    /**
***************
*** 54,58 ****
     * @param error SUCCESS if the set was successful
     */
!   async event void setConfigRegDone( error_t error );
  
  
--- 54,58 ----
     * @param error SUCCESS if the set was successful
     */
!   async event void setConfigDone( error_t error );
  
  

Index: HplDS2745LogicP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/ds2745/Attic/HplDS2745LogicP.nc,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -C2 -d -r1.1.2.3 -r1.1.2.4
*** HplDS2745LogicP.nc	11 Aug 2006 19:05:03 -0000	1.1.2.3
--- HplDS2745LogicP.nc	11 Aug 2006 22:44:53 -0000	1.1.2.4
***************
*** 170,173 ****
--- 170,177 ----
    }
    
+   command error_t HplDS2745.setConfig(uint8_t val) {
+     return doSetReg(STATE_SETCONFIG,DS2745_PTR_SC,val);
+   }
+ 
    command error_t HplDS2745.measureTemperature() { 
      return doReadReg(STATE_READTEMP,DS2745_PTR_TEMPMSB);
***************
*** 223,226 ****
--- 227,234 ----
  
      switch (mState) {
+     case STATE_SETCONFIG:
+       atomic mState = STATE_IDLE;
+       signal HplDS2745.setConfigDone(error);
+       break;     
      case STATE_READTEMP:
        if (error) 
***************
*** 266,269 ****
--- 274,278 ----
    default event void SplitControl.startDone( error_t error ) { return; }
    default event void SplitControl.stopDone( error_t error ) { return; }
+   default async event void HplDS2745.setConfigDone(error_t error) {return; }
    default async event void HplDS2745.measureTemperatureDone( error_t error, uint16_t val ){ return; }
    default async event void HplDS2745.measureVoltageDone( error_t error, uint16_t val ){ return; }



More information about the Tinyos-2-commits mailing list