]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/mulle/chips/ds2782/DS2782InternalC.nc
Fixed a bug in the Software I2C. The first time a start condition was sent the clock...
[tinyos-2.x.git] / tos / platforms / mulle / chips / ds2782 / DS2782InternalC.nc
index d957cf8d6087a5f059536d47a080d76ca59c667d..6c3063c0846d4f56e9cd908de64555b160934a9d 100644 (file)
  * 
  * @author Henrik Makitaavola <henrik.makitaavola@gmail.com>
  */
-configuration DS2782InternalC {
+configuration DS2782InternalC
+{
   provides interface StdControl;
   provides interface HplDS2782;
 }
 
-implementation {
-  components new SoftI2CBatteryMonitorRTCC() 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.Pullup -> IOs.PortP75;
+  DS2782InternalP.ResourceDefaultOwner -> I2C;
 }