]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/telosa/PlatformP.nc
Updates for GCC 4.5.3
[tinyos-2.x.git] / tos / platforms / telosa / PlatformP.nc
index 144517896b977bd20e20a125ab768f381ec589cf..e56d893426327781c1a6ebe6750ca8bdb283c88a 100644 (file)
@@ -1,14 +1,17 @@
 #include "hardware.h"
 
-module PlatformP{
+module PlatformP @safe() {
   provides interface Init;
-  uses interface Init as Msp430ClockInit;
+  uses interface Init as MoteClockInit;
   uses interface Init as MoteInit;
   uses interface Init as LedsInit;
 }
 implementation {
   command error_t Init.init() {
-    call Msp430ClockInit.init();
+#ifdef __MSP430_HAS_WDT__
+    WDTCTL = WDTPW + WDTHOLD;
+#endif
+    call MoteClockInit.init();
     call MoteInit.init();
     call LedsInit.init();
     return SUCCESS;