X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=apps%2FIPBaseStation%2FBaseStationC.nc;h=8c801a3adee18738d98d876104256193f1fde421;hb=391a8bf5861d4ee6074ad09164651abe4dc06671;hp=aa36022ef6eeec6d9ea6fdad5ae693090665e5ae;hpb=3d5c78e867d6fd52e44894e93e4bd0c172071522;p=tinyos-2.x.git diff --git a/apps/IPBaseStation/BaseStationC.nc b/apps/IPBaseStation/BaseStationC.nc index aa36022e..8c801a3a 100644 --- a/apps/IPBaseStation/BaseStationC.nc +++ b/apps/IPBaseStation/BaseStationC.nc @@ -84,10 +84,19 @@ z * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT * @author Philip Levis * @date August 10 2005 */ +#include 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; @@ -124,6 +133,10 @@ implementation { components IPAddressC; BaseStationP.IPAddress -> IPAddressC; +#if defined(PLATFORM_IRIS) || defined(PLATFORM_MULLE) + BaseStationP.RadioChannel -> Radio; +#else components CC2420ControlC; BaseStationP.CC2420Config -> CC2420ControlC; +#endif }