X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Frf2xx%2Flayers%2FActiveMessageLayerP.nc;h=e80357173b43a29b8c986db6b04aa2a56b529553;hb=9d7e3ad7a39e567bb854afe46e24f544618e34fa;hp=c37c2bb8b9f1f8a77a15b68dd1823eedb6e345a6;hpb=f8588baf987238122a928ded58831bea72cb35b1;p=tinyos-2.x.git diff --git a/tos/chips/rf2xx/layers/ActiveMessageLayerP.nc b/tos/chips/rf2xx/layers/ActiveMessageLayerP.nc index c37c2bb8..e8035717 100644 --- a/tos/chips/rf2xx/layers/ActiveMessageLayerP.nc +++ b/tos/chips/rf2xx/layers/ActiveMessageLayerP.nc @@ -33,6 +33,7 @@ module ActiveMessageLayerP interface AMSend[am_id_t id]; interface Receive[am_id_t id]; interface Receive as Snoop[am_id_t id]; + interface SendNotifier[am_id_t id]; } uses @@ -68,6 +69,8 @@ implementation call AMPacket.setType(msg, id); call AMPacket.setDestination(msg, addr); + signal SendNotifier.aboutToSend[id](addr, msg); + return call SubSend.send(msg, len); } @@ -95,6 +98,10 @@ implementation return call SubSend.getPayload(msg, len); } + default event void SendNotifier.aboutToSend[am_id_t id](am_addr_t addr, message_t* msg) + { + } + /*----------------- Receive -----------------*/ event message_t* SubReceive.receive(message_t* msg, void* payload, uint8_t len)