App.AMSend -> ActiveMessageC.AMSend[AM_TEST_FTSP_MSG];
App.Packet -> ActiveMessageC;
App.PacketTimeStamp -> ActiveMessageC;
+ App.LowPowerListening -> ActiveMessageC;
+
components RandomC;
App.Random -> RandomC;
App.GlobalTime -> TimeSync32kC;
App.TimeSyncInfo -> TimeSync32kC;
App.Leds -> LedsC;
-
-#ifdef LOW_POWER_LISTENING
- components CC2420ActiveMessageC;
- App.LowPowerListening -> CC2420ActiveMessageC;
-#endif
-
+
}
interface TimeSyncPacket<T32khz,uint32_t>;
-#ifdef LOW_POWER_LISTENING
interface LowPowerListening;
-#endif
}
}
}
event void RadioControl.startDone(error_t err) {
-#ifdef LOW_POWER_LISTENING
call LowPowerListening.setLocalWakeupInterval(LPL_INTERVAL);
-#endif
}
event void RadioControl.stopDone(error_t error){}
}
TimeSyncP.Leds -> LedsC;
#ifdef LOW_POWER_LISTENING
- components CC2420ActiveMessageC;
- TimeSyncP.LowPowerListening -> CC2420ActiveMessageC;
+ TimeSyncP.LowPowerListening -> ActiveMessageC;
#endif