]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tests/deluge/Blink/BlinkAppC.nc
Merge TinyOS 2.1.1 into master.
[tinyos-2.x.git] / apps / tests / deluge / Blink / BlinkAppC.nc
index 1a09d0ff973ee06d4ba0f080cf27715cbd788522..1d873c40ac48ad3861704d86aeaaf95babc9bdb4 100644 (file)
@@ -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.
  *
  * @author Razvan Musaloiu-E. <razvanm@cs.jhu.edu>
  **/
 
-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;
 }