]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/AntiTheft/Root/AntiTheftRootAppC.nc
updated with support for the iris mote, fixed a compile bug
[tinyos-2.x.git] / apps / AntiTheft / Root / AntiTheftRootAppC.nc
index fa97f7179a48f13d9c297a6122365112b926f21e..2119dda91f9e4dbf78f6d4122edcd0554a7adc99 100644 (file)
@@ -28,8 +28,10 @@ implementation
   components CC1000CsmaRadioC as Radio;
 #elif defined(PLATFORM_MICAZ)
   components CC2420ActiveMessageC as Radio;
+#elif defined(PLATFORM_IRIS)
+  components DummyLPLMacC as Radio;
 #else
-#error "The AntiTheft application is only supported for mica2 and micaz nodes"
+#error "The AntiTheft application is only supported for mica2, micaz and iris nodes"
 #endif
 
   AntiTheftRootC.Boot -> MainC;
@@ -38,6 +40,8 @@ implementation
   AntiTheftRootC.LowPowerListening -> Radio;
   AntiTheftRootC.Leds -> LedsC;
 
+  components DisseminationC;
+  AntiTheftRootC.DisseminationControl -> DisseminationC;
   /* Next, instantiate and wire a disseminator (to send settings) and a
      serial receiver (to receive settings from the PC) */
   components new DisseminatorC(settings_t, DIS_SETTINGS),
@@ -48,7 +52,7 @@ implementation
 
   /* Finally, instantiate and wire a collector (to receive theft alerts) and
      a serial sender (to send the alerts to the PC) */
-  components CollectionC, new SerialAMSenderC(AM_ALERTS) as AlertsForwarder;
+  components CollectionC, new SerialAMSenderC(AM_ALERT) as AlertsForwarder;
 
   AntiTheftRootC.CollectionControl -> CollectionC;
   AntiTheftRootC.RootControl -> CollectionC;