X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fplatforms%2Fmulle%2Fchips%2Fds2782%2FDS2782InternalC.nc;h=0041b06f33038eaf52c9e9ab771e4b2736cf0a91;hb=31ff2c2cf814676d013f819729ee17c1d26f2f29;hp=d957cf8d6087a5f059536d47a080d76ca59c667d;hpb=2d74d98ec380d6cf237814287406c993977a60e3;p=tinyos-2.x.git diff --git a/tos/platforms/mulle/chips/ds2782/DS2782InternalC.nc b/tos/platforms/mulle/chips/ds2782/DS2782InternalC.nc index d957cf8d..0041b06f 100644 --- a/tos/platforms/mulle/chips/ds2782/DS2782InternalC.nc +++ b/tos/platforms/mulle/chips/ds2782/DS2782InternalC.nc @@ -39,19 +39,25 @@ * * @author Henrik Makitaavola */ -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.SDA -> IOs.PortP70; + DS2782InternalP.SCL -> IOs.PortP71; + DS2782InternalP.ResourceDefaultOwner -> I2C; }