X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fplatforms%2Ftelosa%2FPlatformP.nc;h=e56d893426327781c1a6ebe6750ca8bdb283c88a;hb=bc58e5a5704f1eaa10cae4106cf5fd5529c20833;hp=93c1b6fdb7941fc996e017f1cd0799918d3507d9;hpb=c03404945adfe801433985cc0bbf0c0ee622900e;p=tinyos-2.x.git diff --git a/tos/platforms/telosa/PlatformP.nc b/tos/platforms/telosa/PlatformP.nc index 93c1b6fd..e56d8934 100644 --- a/tos/platforms/telosa/PlatformP.nc +++ b/tos/platforms/telosa/PlatformP.nc @@ -1,6 +1,6 @@ #include "hardware.h" -module PlatformP{ +module PlatformP @safe() { provides interface Init; uses interface Init as MoteClockInit; uses interface Init as MoteInit; @@ -8,6 +8,9 @@ module PlatformP{ } implementation { command error_t Init.init() { +#ifdef __MSP430_HAS_WDT__ + WDTCTL = WDTPW + WDTHOLD; +#endif call MoteClockInit.init(); call MoteInit.init(); call LedsInit.init();