From: kusy Date: Wed, 16 Dec 2009 21:33:20 +0000 (+0000) Subject: print out error message when unsupported platform X-Git-Tag: rc_6_tinyos_2_1_1~96 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=5e7ed4476989284b4279782bedd79677eaadf984 print out error message when unsupported platform --- 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; }