]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/cc2420/CC2420ActiveMessageC.nc
Remove bogus 'tab:4' and 'tab:2' markers.
[tinyos-2.x.git] / tos / chips / cc2420 / CC2420ActiveMessageC.nc
index 31e90766e7f2db0ba8456a8a957deb39edd8cc04..21734736d9323621bb96db1dce851a46e8985b2e 100644 (file)
@@ -1,4 +1,4 @@
-/*                                                                     tab:4
+/*
  * "Copyright (c) 2005 Stanford University. All rights reserved.
  *
  * Permission to use, copy, modify, and distribute this software and
@@ -35,6 +35,7 @@
  */
 
 #include "CC2420.h"
+#include "AM.h"
 
 configuration CC2420ActiveMessageC {
   provides {
@@ -46,27 +47,28 @@ configuration CC2420ActiveMessageC {
     interface Packet;
     interface CC2420Packet;
     interface PacketAcknowledgements;
+    interface LinkPacketMetadata;
     interface RadioBackoff[am_id_t amId];
     interface LowPowerListening;
     interface PacketLink;
+    interface SendNotifier[am_id_t amId];
   }
 }
 implementation {
 
   components CC2420ActiveMessageP as AM;
   components CC2420CsmaC as CsmaC;
-  components ActiveMessageAddressC as Address;
+  components ActiveMessageAddressC;
   components UniqueSendC;
   components UniqueReceiveC;
   components CC2420TinyosNetworkC;
   components CC2420PacketC;
+  components CC2420ControlC;
   
 #if defined(LOW_POWER_LISTENING) || defined(ACK_LOW_POWER_LISTENING)
-  components CC2420AckLplC as LplC;
-#elif defined(NOACK_LOW_POWER_LISTENING)
-  components CC2420NoAckLplC as LplC;
+  components DefaultLplC as LplC;
 #else
-  components CC2420LplDummyC as LplC;
+  components DummyLplC as LplC;
 #endif
 
 #if defined(PACKET_LINK)
@@ -76,17 +78,18 @@ implementation {
 #endif
 
   
-  RadioBackoff = CsmaC;
-  Packet       = AM;
-  AMSend   = AM;
-  Receive  = AM.Receive;
-  Snoop    = AM.Snoop;
+  RadioBackoff = AM;
+  Packet = AM;
+  AMSend = AM;
+  SendNotifier = AM;
+  Receive = AM.Receive;
+  Snoop = AM.Snoop;
   AMPacket = AM;
   PacketLink = LinkC;
   LowPowerListening = LplC;
   CC2420Packet = CC2420PacketC;
   PacketAcknowledgements = CC2420PacketC;
-  
+  LinkPacketMetadata = CC2420PacketC;
   
   // SplitControl Layers
   SplitControl = LplC;
@@ -105,7 +108,11 @@ implementation {
   UniqueReceiveC.SubReceive -> CC2420TinyosNetworkC.Receive;
   CC2420TinyosNetworkC.SubReceive -> CsmaC;
 
-  AM.amAddress -> Address;
+  AM.ActiveMessageAddress -> ActiveMessageAddressC;
   AM.CC2420Packet -> CC2420PacketC;
+  AM.CC2420PacketBody -> CC2420PacketC;
+  AM.CC2420Config -> CC2420ControlC;
+  
+  AM.SubBackoff -> CsmaC;
   
 }