]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/mulle/chips/ds2782/DS2782InternalC.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 / chips / ds2782 / DS2782InternalC.nc
index de4d272dd70cf16d7d4e6c72b4aeb9cd28b1a391..0041b06f33038eaf52c9e9ab771e4b2736cf0a91 100644 (file)
  * 
  * @author Henrik Makitaavola <henrik.makitaavola@gmail.com>
  */
-configuration DS2782InternalC {
+configuration DS2782InternalC
+{
   provides interface StdControl;
   provides interface HplDS2782;
 }
 
-implementation {
-  components new SoftwareI2C2C() as I2C;
-  components new HplDS2782LogicP(0x68) as Logic;
-  
+implementation
+{
+  components new SoftwareI2C2C() as I2C,
+             new HplDS2782LogicP(0x68) as Logic,
+             DS2782InternalP,
+             HplM16c62pGeneralIOC as IOs;
+
   Logic.I2CPacket -> I2C;
   Logic.I2CResource -> I2C;
   HplDS2782 = Logic;
-
   StdControl = Logic;
 
+  DS2782InternalP.SDA -> IOs.PortP70;
+  DS2782InternalP.SCL -> IOs.PortP71;
+  DS2782InternalP.ResourceDefaultOwner -> I2C;
 }