X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=tos%2Flib%2Ftosthreads%2Fsystem%2FBlockingSerialActiveMessageC.nc;h=69c12ec77ead8051d57367e40ee8563c3aecacb6;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hp=f9b9ed3d75fd70e18f6d13a7ab4beab0b1666cbd;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400;p=tinyos-2.x.git diff --git a/tos/lib/tosthreads/system/BlockingSerialActiveMessageC.nc b/tos/lib/tosthreads/system/BlockingSerialActiveMessageC.nc index f9b9ed3d..69c12ec7 100644 --- a/tos/lib/tosthreads/system/BlockingSerialActiveMessageC.nc +++ b/tos/lib/tosthreads/system/BlockingSerialActiveMessageC.nc @@ -44,24 +44,21 @@ configuration BlockingSerialActiveMessageC { interface AMPacket; interface PacketAcknowledgements; } - uses { - interface Receive as Receive[uint8_t id]; - interface AMSend as AMSend[uint8_t id]; - } } implementation { components SerialActiveMessageC as AM; components new BlockingStdControlC(); components BlockingSerialAMReceiverP as AMReceiverP; components BlockingSerialAMSenderP as AMSenderP; + BlockingStdControl = BlockingStdControlC; BlockingReceive = AMReceiverP; BlockingReceiveAny = AMReceiverP; BlockingAMSend = AMSenderP; BlockingStdControlC.SplitControl -> AM; - Receive = AMReceiverP.Receive; - AMSend = AMSenderP.AMSend; + AMReceiverP.Receive -> AM.ReceiveDefault; + AMSenderP.AMSend -> AM.AMSend; Packet = AM; AMPacket = AM;