X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Fchips%2Fcc2420_tkn154%2FCC2420TKN154C.nc;h=9909839004115611f9d964736be7182b74ddb216;hp=18da878a2e4cd2151eb5d3cfa435e32e0b6dd2a8;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400 diff --git a/tos/chips/cc2420_tkn154/CC2420TKN154C.nc b/tos/chips/cc2420_tkn154/CC2420TKN154C.nc index 18da878a..99098390 100644 --- a/tos/chips/cc2420_tkn154/CC2420TKN154C.nc +++ b/tos/chips/cc2420_tkn154/CC2420TKN154C.nc @@ -41,10 +41,13 @@ configuration CC2420TKN154C interface SplitControl; interface RadioRx; interface RadioTx; + interface SlottedCsmaCa; + interface UnslottedCsmaCa; interface EnergyDetection; interface RadioOff; interface Set as RadioPromiscuousMode; interface Timestamp; + interface GetNow as CCA; } uses { interface Notify as PIBUpdate[uint8_t attributeID]; interface LocalTime; @@ -55,7 +58,6 @@ configuration CC2420TKN154C interface ReferenceTime; interface ReliableWait; interface TimeCalc; - interface Leds; interface Random; } } implementation { @@ -65,6 +67,8 @@ configuration CC2420TKN154C SplitControl = PHY; RadioRx = PHY; RadioTx = PHY; + SlottedCsmaCa = PHY; + UnslottedCsmaCa = PHY; RadioOff = PHY; EnergyDetection = PHY; PIBUpdate = PHY; @@ -74,9 +78,9 @@ configuration CC2420TKN154C ReliableWait = PHY; ReferenceTime = PHY; TimeCalc = PHY; + CCA = PHY; PHY.Random = Random; - Leds = PHY.Leds; components CC2420ControlTransmitC; PHY.SpiResource -> CC2420ControlTransmitC; @@ -84,7 +88,6 @@ configuration CC2420TKN154C PHY.CC2420Config -> CC2420ControlTransmitC; CC2420ControlTransmitC.StartupAlarm = Alarm2; FrameUtility = CC2420ControlTransmitC; - Leds = CC2420ControlTransmitC; PHY.TxControl -> CC2420ControlTransmitC; PHY.CC2420Tx -> CC2420ControlTransmitC; @@ -96,7 +99,6 @@ configuration CC2420TKN154C PHY.RxControl -> CC2420ReceiveC; PHY.CC2420Rx -> CC2420ReceiveC.CC2420Rx; ReferenceTime = CC2420ReceiveC; - Leds = CC2420ReceiveC; FrameUtility = CC2420ReceiveC; CC2420ReceiveC.CC2420Config -> CC2420ControlTransmitC; }