X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Frf230%2FMessageBufferLayerP.nc;h=374edaadbeaee492d79c197ef8045a13c36498e2;hb=60f8c4ec4b792c6a99d5ef66ee413e8712a10a1e;hp=bc31ef7245aa065880074733df8ee4db337651e8;hpb=2bdca3de5f2b193449d36f974c82626210b9cc9e;p=tinyos-2.x.git diff --git a/tos/chips/rf230/MessageBufferLayerP.nc b/tos/chips/rf230/MessageBufferLayerP.nc index bc31ef72..374edaad 100644 --- a/tos/chips/rf230/MessageBufferLayerP.nc +++ b/tos/chips/rf230/MessageBufferLayerP.nc @@ -33,7 +33,7 @@ module MessageBufferLayerP interface Send; interface Receive; - interface RadioConfig; + interface RadioChannel; } uses { @@ -100,7 +100,7 @@ implementation return error; } - command error_t RadioConfig.setChannel(uint8_t channel) + command error_t RadioChannel.setChannel(uint8_t channel) { error_t error; @@ -119,6 +119,11 @@ implementation return error; } + command uint8_t RadioChannel.getChannel() + { + return call RadioState.getChannel(); + } + task void stateDoneTask() { uint8_t s; @@ -133,7 +138,7 @@ implementation else if( s == STATE_TURN_OFF ) signal SplitControl.stopDone(SUCCESS); else if( s == STATE_CHANNEL ) - signal RadioConfig.setChannelDone(); + signal RadioChannel.setChannelDone(); else // not our event, ignore it state = s; } @@ -151,7 +156,7 @@ implementation { } - default event void RadioConfig.setChannelDone() + default event void RadioChannel.setChannelDone() { }