X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Frf2xx%2Flayers%2FUniqueLayerP.nc;h=121139db04688c4f6634829eaf3f4a2411ae7caf;hb=54538a754044acac23adbda11567f0e774ea1b80;hp=d341942e0313140e8565d820b43293da542c4f61;hpb=e855a271834e27716a9c5d79cbf364aac22eb3bd;p=tinyos-2.x.git diff --git a/tos/chips/rf2xx/layers/UniqueLayerP.nc b/tos/chips/rf2xx/layers/UniqueLayerP.nc index d341942e..121139db 100755 --- a/tos/chips/rf2xx/layers/UniqueLayerP.nc +++ b/tos/chips/rf2xx/layers/UniqueLayerP.nc @@ -28,7 +28,7 @@ module UniqueLayerP { provides { - interface Send; + interface BareSend as Send; interface RadioReceive; interface Init; @@ -36,7 +36,7 @@ module UniqueLayerP uses { - interface Send as SubSend; + interface BareSend as SubSend; interface RadioReceive as SubReceive; interface UniqueConfig; @@ -55,10 +55,10 @@ implementation return SUCCESS; } - command error_t Send.send(message_t* msg, uint8_t len) + command error_t Send.send(message_t* msg) { call UniqueConfig.setSequenceNumber(msg, ++sequenceNumber); - return call SubSend.send(msg, len); + return call SubSend.send(msg); } command error_t Send.cancel(message_t* msg) @@ -71,16 +71,6 @@ implementation signal Send.sendDone(msg, error); } - command uint8_t Send.maxPayloadLength() - { - return call SubSend.maxPayloadLength(); - } - - command void* Send.getPayload(message_t* msg, uint8_t len) - { - return call SubSend.getPayload(msg, len); - } - tasklet_async event bool SubReceive.header(message_t* msg) { // we could scan here, but better be lazy