From: mmaroti Date: Thu, 24 Apr 2008 21:15:50 +0000 (+0000) Subject: Do the propoer LPL selection on IRIS for the AntiTheft app X-Git-Tag: release_tinyos_2_1_0_0~452 X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=commitdiff_plain;h=e7eb45ff4faab47bdc9fc6880b6ebec515f927f1;p=tinyos-2.x.git Do the propoer LPL selection on IRIS for the AntiTheft app --- diff --git a/apps/AntiTheft/Nodes/AntiTheftAppC.nc b/apps/AntiTheft/Nodes/AntiTheftAppC.nc index 6f68aa99..006fd989 100644 --- a/apps/AntiTheft/Nodes/AntiTheftAppC.nc +++ b/apps/AntiTheft/Nodes/AntiTheftAppC.nc @@ -30,7 +30,7 @@ implementation #elif defined(PLATFORM_MICAZ) components CC2420ActiveMessageC as Radio; #elif defined(PLATFORM_IRIS) - components DummyLPLMacC as Radio; + components ActiveMessageC as Radio; #else #error "The AntiTheft application is only supported for mica2, micaz and iris nodes" #endif diff --git a/apps/AntiTheft/Root/AntiTheftRootAppC.nc b/apps/AntiTheft/Root/AntiTheftRootAppC.nc index 2119dda9..213a50a2 100644 --- a/apps/AntiTheft/Root/AntiTheftRootAppC.nc +++ b/apps/AntiTheft/Root/AntiTheftRootAppC.nc @@ -29,7 +29,7 @@ implementation #elif defined(PLATFORM_MICAZ) components CC2420ActiveMessageC as Radio; #elif defined(PLATFORM_IRIS) - components DummyLPLMacC as Radio; + components ActiveMessageC as Radio; #else #error "The AntiTheft application is only supported for mica2, micaz and iris nodes" #endif diff --git a/tos/platforms/iris/ActiveMessageC.nc b/tos/platforms/iris/ActiveMessageC.nc index eda2370c..80c32584 100644 --- a/tos/platforms/iris/ActiveMessageC.nc +++ b/tos/platforms/iris/ActiveMessageC.nc @@ -36,6 +36,7 @@ configuration ActiveMessageC interface PacketAcknowledgements; interface PacketField as PacketLinkQuality; interface PacketTimeStamp; + interface LowPowerListening; interface PacketLastTouch; } } @@ -55,4 +56,5 @@ implementation PacketLinkQuality = MAC; PacketTimeStamp = MAC; PacketLastTouch = MAC; + LowPowerListening = MAC; }