From e7eb45ff4faab47bdc9fc6880b6ebec515f927f1 Mon Sep 17 00:00:00 2001 From: mmaroti Date: Thu, 24 Apr 2008 21:15:50 +0000 Subject: [PATCH] Do the propoer LPL selection on IRIS for the AntiTheft app --- apps/AntiTheft/Nodes/AntiTheftAppC.nc | 2 +- apps/AntiTheft/Root/AntiTheftRootAppC.nc | 2 +- tos/platforms/iris/ActiveMessageC.nc | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) 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; } -- 2.39.2