X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Flib%2Fmac%2Ftkn154%2Fdummies%2FNoPromiscuousModeP.nc;h=57bbee8d5f1197f67ff12a57fa9753527fd6a755;hp=ae3a2124fe29def3f696b56bfcb1508147aa1d49;hb=7409b3f93aa5cec1679b5c79b118b52e33bd81cf;hpb=119f31091836e655ae03430e270d1c9b2c801e6f diff --git a/tos/lib/mac/tkn154/dummies/NoPromiscuousModeP.nc b/tos/lib/mac/tkn154/dummies/NoPromiscuousModeP.nc index ae3a2124..57bbee8d 100644 --- a/tos/lib/mac/tkn154/dummies/NoPromiscuousModeP.nc +++ b/tos/lib/mac/tkn154/dummies/NoPromiscuousModeP.nc @@ -46,7 +46,7 @@ module NoPromiscuousModeP interface FrameRx; interface GetNow as IsRadioTokenRequested; } uses { - interface Resource as Token; + interface TransferableResource as RadioToken; interface RadioRx as PromiscuousRx; interface RadioOff; interface Set as RadioPromiscuousMode; @@ -63,11 +63,11 @@ implementation command error_t PromiscuousMode.start() { return FAIL; } - event void Token.granted() { call Token.release(); } + event void RadioToken.granted() { ASSERT(0);} - async event void PromiscuousRx.prepareDone() { } + event message_t* PromiscuousRx.received(message_t *frame, const ieee154_timestamp_t *timestamp) { return frame; } - event message_t* PromiscuousRx.received(message_t *frame, ieee154_timestamp_t *timestamp) { return frame; } + async event void PromiscuousRx.enableRxDone(){} command error_t PromiscuousMode.stop() { return FAIL; } @@ -76,4 +76,5 @@ implementation default event void PromiscuousMode.startDone(error_t error){} default event void PromiscuousMode.stopDone(error_t error){} async command token_requested_t IsRadioTokenRequested.getNow(){ return FALSE;} + async event void RadioToken.transferredFrom(uint8_t clientFrom){ASSERT(0);} }