X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=apps%2Ftests%2Fdeluge%2FBlink%2FBlinkAppC.nc;h=1d873c40ac48ad3861704d86aeaaf95babc9bdb4;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hp=1a09d0ff973ee06d4ba0f080cf27715cbd788522;hpb=24d1907c54f0648f1c54bc09e276f625b4038293;p=tinyos-2.x.git diff --git a/apps/tests/deluge/Blink/BlinkAppC.nc b/apps/tests/deluge/Blink/BlinkAppC.nc index 1a09d0ff..1d873c40 100644 --- a/apps/tests/deluge/Blink/BlinkAppC.nc +++ b/apps/tests/deluge/Blink/BlinkAppC.nc @@ -28,7 +28,7 @@ */ /** - * Blink is a basic application that toggles the a mote LED periodically. + * Blink is a basic application that toggles a mote's LED periodically. * It does so by starting a Timer that fires every second. It uses the * OSKI TimerMilli service to achieve this goal. * @@ -37,20 +37,17 @@ * @author Razvan Musaloiu-E. **/ -configuration BlinkAppC -{ -} +configuration BlinkAppC { } + implementation { components MainC, BlinkC, LedsC; -#ifdef DELUGE + components new TimerMilliC() as Timer0; components DelugeC; + DelugeC.Leds -> LedsC; -#endif - components new TimerMilliC() as Timer0; BlinkC -> MainC.Boot; - BlinkC.Timer0 -> Timer0; BlinkC.Leds -> LedsC; }