X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=apps%2Ftests%2FTestFtsp%2FFtspLpl%2FTestFtspAppC.nc;h=1d526256c41f3c5de3c9b95c2421a4f03eb51fd1;hb=5e7ed4476989284b4279782bedd79677eaadf984;hp=bb5906154b9cb5b3db25c1efec851ba97308fb42;hpb=84c0df4fa29a1bf38b6acbfe38123bfd3116400e;p=tinyos-2.x.git diff --git a/apps/tests/TestFtsp/FtspLpl/TestFtspAppC.nc b/apps/tests/TestFtsp/FtspLpl/TestFtspAppC.nc index bb590615..1d526256 100755 --- a/apps/tests/TestFtsp/FtspLpl/TestFtspAppC.nc +++ b/apps/tests/TestFtsp/FtspLpl/TestFtspAppC.nc @@ -30,12 +30,7 @@ configuration TestFtspAppC { } implementation { - components MainC, TimeSync32kC; - - MainC.SoftwareInit -> TimeSync32kC; - TimeSync32kC.Boot -> MainC; - - components TestFtspC as App; + components MainC, TestFtspC as App; App.Boot -> MainC; components ActiveMessageC; @@ -57,8 +52,15 @@ implementation { 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; }