X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fplatforms%2Fepic%2FPlatformP.nc;h=d44b5e7f78b43b0d0f3f70f0116730176beeac59;hb=bc58e5a5704f1eaa10cae4106cf5fd5529c20833;hp=582e665f73b3b34196fd4f3f8b4256eedccd7aed;hpb=c42a686e497601c393a2fa8eb9d604bcf784e1d3;p=tinyos-2.x.git diff --git a/tos/platforms/epic/PlatformP.nc b/tos/platforms/epic/PlatformP.nc index 582e665f..d44b5e7f 100644 --- a/tos/platforms/epic/PlatformP.nc +++ b/tos/platforms/epic/PlatformP.nc @@ -38,12 +38,17 @@ module PlatformP { } uses { interface Init as MoteClockInit; + interface Init as MoteInit; interface Init as LedsInit; } } implementation { command error_t Init.init() { +#ifdef __MSP430_HAS_WDT__ + WDTCTL = WDTPW + WDTHOLD; +#endif call MoteClockInit.init(); + call MoteInit.init(); call LedsInit.init(); return SUCCESS; }