* @author Philip Levis
* @date August 10 2005
*/
+#include <Ieee154.h>
configuration BaseStationC {
}
implementation {
+
+ enum {
+ // becasue we're the only one's using the radio, we're lazy and
+ // don't acquire the resource. For some reason, it seems to crash
+ // occasionally if we don't do this.
+ RESOURCE_IDX = unique(IEEE154_SEND_CLIENT),
+ };
+
components MainC, BaseStationP, LedsC;
components Ieee154MessageC as Radio;
components SerialDispatcherC as SerialControl, Serial802_15_4C as Serial;
components IPAddressC;
BaseStationP.IPAddress -> IPAddressC;
+#ifdef PLATFORM_IRIS
+ BaseStationP.RadioChannel -> Radio;
+#else
components CC2420ControlC;
BaseStationP.CC2420Config -> CC2420ControlC;
+#endif
}