[Tinyos-2-commits] CVS: tinyos-2.x/tos/platforms/intelmote2/chips/ds2745 DS2745InternalC.nc, 1.1.2.1, 1.1.2.2 DS2745InternalP.nc, 1.1.2.3, 1.1.2.4

Kaisen Lin kaisenl at users.sourceforge.net
Fri Aug 11 17:05:49 PDT 2006


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

Modified Files:
      Tag: tinyos-2_0_devel-BRANCH
	DS2745InternalC.nc DS2745InternalP.nc 
Log Message:
DS2745 compiles now

Index: DS2745InternalC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/platforms/intelmote2/chips/ds2745/Attic/DS2745InternalC.nc,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** DS2745InternalC.nc	11 Aug 2006 00:59:43 -0000	1.1.2.1
--- DS2745InternalC.nc	12 Aug 2006 00:05:47 -0000	1.1.2.2
***************
*** 43,51 ****
  
  implementation {
!   enum { 
!     ADV_ID = unique("Tsl2561.HplAccess"),
!   };
! 
!   components new FcfsArbiterC( "Tsl2561.Resource" ) as Arbiter;
    components MainC;
    Resource = Arbiter;
--- 43,47 ----
  
  implementation {
!   components new FcfsArbiterC( "Ds2745.Resource" ) as Arbiter;
    components MainC;
    Resource = Arbiter;
***************
*** 58,61 ****
--- 54,61 ----
    Logic.I2CPacket -> I2CC;
  
+   components HplPXA27xGPIOC;
+   I2CC.I2CSCL -> HplPXA27xGPIOC.HplPXA27xGPIOPin[I2C_SCL];
+   I2CC.I2CSDA -> HplPXA27xGPIOC.HplPXA27xGPIOPin[I2C_SDA];
+ 
    components DS2745InternalP as Internal;
    HplDS2745 = Internal.HplDS2745;

Index: DS2745InternalP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/platforms/intelmote2/chips/ds2745/Attic/DS2745InternalP.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
*** DS2745InternalP.nc	11 Aug 2006 22:44:53 -0000	1.1.2.3
--- DS2745InternalP.nc	12 Aug 2006 00:05:47 -0000	1.1.2.4
***************
*** 36,40 ****
   */
  
! module Tsl2561InternalP {
    provides interface HplDS2745[uint8_t id];
    uses interface HplDS2745 as ToHPLC;
--- 36,40 ----
   */
  
! module DS2745InternalP {
    provides interface HplDS2745[uint8_t id];
    uses interface HplDS2745 as ToHPLC;
***************
*** 44,48 ****
    uint8_t currentId;
    
!   command error_t HplDS2745.setConfig[uint8_t id](int8_t val) {
      currentId = id;
      return call ToHPLC.setConfig(val);
--- 44,48 ----
    uint8_t currentId;
    
!   command error_t HplDS2745.setConfig[uint8_t id](uint8_t val) {
      currentId = id;
      return call ToHPLC.setConfig(val);



More information about the Tinyos-2-commits mailing list