X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fplatforms%2Fmulle%2Fchips%2Fds2782%2FDS2782InternalP.nc;h=6db69919ce51a4cd6f9eaf69c7a16264587965b7;hb=f1b1bacb52777dced4f53563b4a30fc31940ca7d;hp=5d2b7cbc7c1f21ccb59042473525d0abfb98ee1e;hpb=31ff2c2cf814676d013f819729ee17c1d26f2f29;p=tinyos-2.x.git diff --git a/tos/platforms/mulle/chips/ds2782/DS2782InternalP.nc b/tos/platforms/mulle/chips/ds2782/DS2782InternalP.nc index 5d2b7cbc..6db69919 100644 --- a/tos/platforms/mulle/chips/ds2782/DS2782InternalP.nc +++ b/tos/platforms/mulle/chips/ds2782/DS2782InternalP.nc @@ -44,26 +44,24 @@ module DS2782InternalP { uses interface ResourceDefaultOwner; - uses interface GeneralIO as SDA; - uses interface GeneralIO as SCL; + uses interface GeneralIO as Pullup; } implementation { async event void ResourceDefaultOwner.granted() { - call SDA.clr(); - call SDA.makeOutput(); - call SCL.clr(); - call SCL.makeOutput(); + call Pullup.clr(); } async event void ResourceDefaultOwner.requested() { + call Pullup.set(); call ResourceDefaultOwner.release(); } async event void ResourceDefaultOwner.immediateRequested() { + call Pullup.set(); call ResourceDefaultOwner.release(); } }