]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/RadioSenseToLeds/RadioSenseToLedsAppC.nc
Changed the default to be that all platforms #include stdio.h unless specifically...
[tinyos-2.x.git] / apps / RadioSenseToLeds / RadioSenseToLedsAppC.nc
index d59d273c6d9232fb3c0f2c0adb787db4779237d2..55503e3e2600068b7448017ffe0f9a1dd992b996 100644 (file)
  * Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA, 
  * 94704.  Attention:  Intel License Inquiry.
  */
+#include "RadioSenseToLeds.h"
 
 /**
- *
+ * Configuration for the RadioSenseToLeds application.  RadioSenseToLeds samples 
+ * a platform's default sensor at 4Hz and broadcasts this value in an AM packet. 
+ * A RadioSenseToLeds node that hears a broadcast displays the bottom three bits 
+ * of the value it has received. This application is a useful test to show that 
+ * basic AM communication, timers, and the default sensor work.
+ * 
  * @author Philip Levis
  * @date   June 6 2005
  */
 
-#include "RadioSenseToLeds.h"
-
 configuration RadioSenseToLedsAppC {}
 implementation {
   components MainC, RadioSenseToLedsC as App, LedsC, new DemoSensorC();
   components ActiveMessageC;
-  components new AMSenderC(AM_RADIOSENSEMSG);
-  components new AMReceiverC(AM_RADIOSENSEMSG);
+  components new AMSenderC(AM_RADIO_SENSE_MSG);
+  components new AMReceiverC(AM_RADIO_SENSE_MSG);
   components new TimerMilliC();
-
-  
   
   App.Boot -> MainC.Boot;