]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/tosthreads/system/BlockingActiveMessageC.nc
Changes to allow other subsystems to wire to underlying ActiveMessages (Send, Receive...
[tinyos-2.x.git] / tos / lib / tosthreads / system / BlockingActiveMessageC.nc
index f3ab2dcdfc4f3c7cc8cb06d18f01fcc70b88bb75..f749e1c9401f0129328d0a01077ba07d0db3fb97 100644 (file)
@@ -46,6 +46,11 @@ configuration BlockingActiveMessageC {
     interface AMPacket;
     interface PacketAcknowledgements;
   }
+  uses {
+    interface Receive as Receive[uint8_t id];
+    interface Receive as Snoop[uint8_t id];
+    interface AMSend as AMSend[uint8_t id];
+  }
 }
 implementation {
   components ActiveMessageC as AM;
@@ -61,9 +66,9 @@ implementation {
   BlockingAMSend = AMSenderP;
   
   BlockingStdControlC.SplitControl -> AM;
-  AMReceiverP.Receive -> AM.Receive;
-  AMSnooperP.Snoop -> AM.Snoop;
-  AMSenderP.AMSend -> AM.AMSend;
+  Receive = AMReceiverP.Receive;
+  Snoop = AMSnooperP.Snoop;
+  AMSend = AMSenderP.AMSend;
     
   Packet       = AM;
   AMPacket     = AM;