X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fplatforms%2Fmulle%2Fchips%2Fds2782%2FDS2782InternalC.nc;fp=tos%2Fplatforms%2Fmulle%2Fchips%2Fds2782%2FDS2782InternalC.nc;h=0041b06f33038eaf52c9e9ab771e4b2736cf0a91;hb=31ff2c2cf814676d013f819729ee17c1d26f2f29;hp=de4d272dd70cf16d7d4e6c72b4aeb9cd28b1a391;hpb=f5c828d4d5ce088f8f5e8175d1203ed08343e781;p=tinyos-2.x.git diff --git a/tos/platforms/mulle/chips/ds2782/DS2782InternalC.nc b/tos/platforms/mulle/chips/ds2782/DS2782InternalC.nc index de4d272d..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 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; }