X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Fmac%2Ftkn154%2FDispatchSlottedCsmaP.nc;h=c2b2932372bf3ef0225af1e313b1163756ac27aa;hb=9b7c447b3ec7173f2b22fce7452151bf209379f5;hp=ca1abef292ce7073ba6a97380e1795a0751c1f48;hpb=def99df655317b53b7063f9a8fed333fe873b3fe;p=tinyos-2.x.git diff --git a/tos/lib/mac/tkn154/DispatchSlottedCsmaP.nc b/tos/lib/mac/tkn154/DispatchSlottedCsmaP.nc index ca1abef2..c2b29323 100644 --- a/tos/lib/mac/tkn154/DispatchSlottedCsmaP.nc +++ b/tos/lib/mac/tkn154/DispatchSlottedCsmaP.nc @@ -73,6 +73,7 @@ generic module DispatchSlottedCsmaP(uint8_t sfDirection) interface Alarm as BLEAlarm; interface Alarm as RxWaitAlarm; interface TransferableResource as RadioToken; + interface ResourceRequested as RadioTokenRequested; interface SuperframeStructure; interface GetNow as IsRadioTokenRequested; interface GetNow as IsRxEnableActive; @@ -741,4 +742,6 @@ implementation command error_t WasRxEnabled.enable() {return FAIL;} command error_t WasRxEnabled.disable() {return FAIL;} + async event void RadioTokenRequested.requested(){ updateState(); } + async event void RadioTokenRequested.immediateRequested(){ updateState(); } }