- components AntiTheftRootC, MainC, LedsC, CollectionC,
- new DisseminatorC(settings_t, DIS_SETTINGS),
- ActiveMessageC, SerialActiveMessageC, CC1000CsmaRadioC,
- new SerialAMReceiverC(AM_SETTINGS) as SettingsReceiver,
- new SerialAMSenderC(AM_ALERTS) as AlertsForwarder;
+ /* First wire the low-level services (booting, serial port, radio).
+ There is no standard name for the actual radio component, so we use
+ #ifdef to get the right one for the current platform. */
+ components AntiTheftRootC, MainC, LedsC, ActiveMessageC, SerialActiveMessageC;
+#if defined(PLATFORM_MICA2)
+ 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, micaz and iris nodes"
+#endif