#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;