]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/RadioCountToLeds/RadioCountToLedsAppC.nc
Remove hwmul-disable; it works in newer GCC
[tinyos-2.x.git] / apps / RadioCountToLeds / RadioCountToLedsAppC.nc
index e19cc16b5f49804d2a2cb9bacf3c706a44c9161f..771a59273d37a8108cf232e755063cd300bb8adf 100644 (file)
@@ -20,7 +20,7 @@
  * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS."
  *
- * Copyright (c) 2002-2005 Intel Corporation
+ * Copyright (c) 2002-2003 Intel Corporation
  * All rights reserved.
  *
  * This file is distributed under the terms in the attached INTEL-LICENSE     
  * Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA, 
  * 94704.  Attention:  Intel License Inquiry.
  */
+#include "RadioCountToLeds.h"
 
 /**
- * This application sends OSKI broadcasts at 1Hz and blinks LED 0 when
- * it receives a broadcast.
+ * Configuration for the RadioCountToLeds application. RadioCountToLeds 
+ * maintains a 4Hz counter, broadcasting its value in an AM packet 
+ * every time it gets updated. A RadioCountToLeds node that hears a counter 
+ * displays the bottom three bits on its LEDs. This application is a useful 
+ * test to show that basic AM communication and timers work.
  *
  * @author Philip Levis
  * @date   June 6 2005
  */
 
-#include "RadioCountToLeds.h"
-
 configuration RadioCountToLedsAppC {}
 implementation {
   components MainC, RadioCountToLedsC as App, LedsC;
-  components new AMSenderC(AM_RADIOCOUNTMSG);
-  components new AMReceiverC(AM_RADIOCOUNTMSG);
+  components new AMSenderC(AM_RADIO_COUNT_MSG);
+  components new AMReceiverC(AM_RADIO_COUNT_MSG);
   components new TimerMilliC();
   components ActiveMessageC;
   
-  
-  
   App.Boot -> MainC.Boot;
   
   App.Receive -> AMReceiverC;