* @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;
};
uint16_t radioRetries = BLIP_L2_RETRIES;
- uint16_t radioDelay = 30;
+ uint16_t radioDelay = BLIP_L2_DELAY;
uint16_t serial_read;
uint16_t radio_read;
#if defined(PLATFORM_TELOS) || defined(PLATFORM_TELOSB) || defined(PLATFORM_EPIC)
WDTCTL = WDT_ARST_1000;
#endif
-
atomic
if (!radioFull)
{