]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/rf2xx/rf212/RF212RadioC.nc
use SendResource with RADIO_SEND_RESOURCE for the resource
[tinyos-2.x.git] / tos / chips / rf2xx / rf212 / RF212RadioC.nc
index db8e5f90cc51f193ea7ff1a716bd76e750f61f3c..23af7c98fcc038d8f47134f403a7cd2d49b79973 100644 (file)
@@ -48,7 +48,7 @@ configuration RF212RadioC
                interface Receive as Ieee154Receive;
                interface SendNotifier as Ieee154Notifier;
 
-               interface Resource as RadioSendResource[uint8_t clint];
+               interface Resource as SendResource[uint8_t clint];
 
                interface Ieee154Packet;
                interface Packet as PacketForIeee154Message;
@@ -108,7 +108,7 @@ implementation
 #ifndef IEEE154FRAMES_ENABLED
 #ifndef TFRAMES_ENABLED
        components new AutoResourceAcquireLayerC();
-       AutoResourceAcquireLayerC.Resource -> RadioSendResourceC.Resource[unique("RADIO_SEND_RESOURCE")];
+       AutoResourceAcquireLayerC.Resource -> SendResourceC.Resource[unique("RADIO_SEND_RESOURCE")];
 #else
        components new DummyLayerC() as AutoResourceAcquireLayerC;
 #endif
@@ -118,8 +118,8 @@ implementation
 // -------- RadioSend Resource
 
 #ifndef TFRAMES_ENABLED
-       components new SimpleFcfsArbiterC("RADIO_SEND_RESOURCE") as RadioSendResourceC;
-       RadioSendResource = RadioSendResourceC;
+       components new SimpleFcfsArbiterC("RADIO_SEND_RESOURCE") as SendResourceC;
+       SendResource = SendResourceC;
 
 // -------- Ieee154 Message