}
implementation {
- components MainC, TimeSync32kC;
-
- MainC.SoftwareInit -> TimeSync32kC;
- TimeSync32kC.Boot -> MainC;
-
- components TestFtspC as App;
+ components MainC, TestFtspC as App;
App.Boot -> MainC;
components ActiveMessageC;
components LedsC;
+#if defined(PLATFORM_MICAZ) || defined(PLATFORM_TELOSB)
+ components TimeSync32kC;
+ MainC.SoftwareInit -> TimeSync32kC;
+ TimeSync32kC.Boot -> MainC;
App.GlobalTime -> TimeSync32kC;
App.TimeSyncInfo -> TimeSync32kC;
+#else
+#error "LPL timesync is not available for your platform"
+#endif
App.Leds -> LedsC;
}