]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Changed the chip wiring of the RV8564 and DS2782 chips on Mulle compatible with the...
authorr-studio <r-studio>
Wed, 21 Apr 2010 12:33:40 +0000 (12:33 +0000)
committerr-studio <r-studio>
Wed, 21 Apr 2010 12:33:40 +0000 (12:33 +0000)
tos/chips/ds2782/HplDS2782LogicP.nc
tos/platforms/mulle/chips/ds2782/DS2782InternalC.nc
tos/platforms/mulle/chips/rv8564/RV8564C.nc
tos/platforms/mulle/chips/rv8564/RV8564P.nc

index dcd0266b9bc526273db426e57dc572b443192943..4040cf6275c8faee39fbf427fc5aea33e1a92e7c 100644 (file)
@@ -247,9 +247,9 @@ implementation {
 
   event void I2CResource.granted() {
     if (read) {
-      call I2CPacket.write(I2C_START,devAddr,1,mI2CBuffer);
+      call I2CPacket.write(I2C_START | I2C_STOP,devAddr,1,mI2CBuffer);
     } else {
-      call I2CPacket.write((I2C_START | I2C_STOP),devAddr,2,mI2CBuffer);
+      call I2CPacket.write(I2C_START | I2C_STOP,devAddr,2,mI2CBuffer);
     }
   }
 
index d957cf8d6087a5f059536d47a080d76ca59c667d..de4d272dd70cf16d7d4e6c72b4aeb9cd28b1a391 100644 (file)
@@ -45,7 +45,7 @@ configuration DS2782InternalC {
 }
 
 implementation {
-  components new SoftI2CBatteryMonitorRTCC() as I2C;
+  components new SoftwareI2C2C() as I2C;
   components new HplDS2782LogicP(0x68) as Logic;
   
   Logic.I2CPacket -> I2C;
index 1f484f9e95d1273a9a6265ffc266619ac69a448b..5b101a1073f4af6b38fd11470620fa81ab80bd93 100755 (executable)
@@ -47,7 +47,7 @@ configuration RV8564C
 implementation
 {
   components RV8564P as RTCP,
-    new SoftI2CBatteryMonitorRTCC() as I2C,
+    new SoftwareI2C2C() as I2C,
     HplM16c62pGeneralIOC as IOs,
     HplM16c62pInterruptC as Irqs,
     new M16c62pInterruptC() as Irq;
index 84dab98e7e5fd17e884e67ee868ba73756ce4ecd..35c0c0a6471d46906b012518717eb47e1c35c2d4 100755 (executable)
@@ -147,7 +147,7 @@ implementation
     atomic {
       if (state == READING)
       {
-        call I2C.write(I2C_START, RV8564_ADDR, 1, &read_register);
+        call I2C.write(I2C_START | I2C_STOP, RV8564_ADDR, 1, &read_register);
       }
       else if (state == WRITING)
       {