]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/mulle/softwarei2c/SoftwareI2C2P.nc
Added support for pulling the SDA and SCL pins low on I2C 2 on Mulle when they are...
[tinyos-2.x.git] / tos / platforms / mulle / softwarei2c / SoftwareI2C2P.nc
index 8d0ed1e94de3621db75f5caed43f37d5f681b5c6..6e790bc59ce23b458aacfa1379a0bf353f48c404 100644 (file)
@@ -47,16 +47,17 @@ configuration SoftwareI2C2P
 {
   provides interface Resource[uint8_t client];
   provides interface I2CPacket<TI2CBasicAddr>[uint8_t client];
+  provides interface ResourceDefaultOwner;
 }
 implementation
 {
   components new SoftwareI2CPacketC(1000),
-      HplM16c62pGeneralIOC as IOs,
-      BusyWaitMicroC,
-      new SharedI2CPacketC(UQ_MULLE_SOFTWAREI2C_2),
-      SoftwareI2C2InitP,
-      PlatformP;
-  
+             HplM16c62pGeneralIOC as IOs,
+             BusyWaitMicroC,
+             new SharedI2CPacketC(UQ_MULLE_SOFTWAREI2C_2),
+             SoftwareI2C2InitP,
+             PlatformP;
+
   // Wire the software I2C bus
   SoftwareI2CPacketC.SCL -> IOs.PortP71;
   SoftwareI2CPacketC.SDA -> IOs.PortP70;
@@ -64,6 +65,7 @@ implementation
 
   Resource  = SharedI2CPacketC;
   I2CPacket = SharedI2CPacketC.I2CPacket;
+  ResourceDefaultOwner = SharedI2CPacketC;
   SharedI2CPacketC -> SoftwareI2CPacketC.I2CPacket;
 
   // Init the bus