]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
print out error message when unsupported platform
authorkusy <kusy>
Wed, 16 Dec 2009 21:33:20 +0000 (21:33 +0000)
committerkusy <kusy>
Wed, 16 Dec 2009 21:33:20 +0000 (21:33 +0000)
apps/tests/TestFtsp/FtspLpl/TestFtspAppC.nc

index bb5906154b9cb5b3db25c1efec851ba97308fb42..1d526256c41f3c5de3c9b95c2421a4f03eb51fd1 100755 (executable)
@@ -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;
   
 }