X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=apps%2FIPBaseStation%2FBaseStationC.nc;h=8c53be0a541c47ac518c554dc2640d2f6ba809bb;hb=fffd345e6fa1693873307844887c4370a0d75bb4;hp=aa36022ef6eeec6d9ea6fdad5ae693090665e5ae;hpb=1ed446b6efe67cd63a1554fc0cd173e32c145356;p=tinyos-2.x.git diff --git a/apps/IPBaseStation/BaseStationC.nc b/apps/IPBaseStation/BaseStationC.nc index aa36022e..8c53be0a 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;