]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tosthreads/apps/TestSineSensor/TestSineSensorAppC.nc
Merge TinyOS 2.1.1 into master.
[tinyos-2.x.git] / apps / tosthreads / apps / TestSineSensor / TestSineSensorAppC.nc
index 2a5bdf2a97eb4ee805a197fa450fbef0c90f9bce..926a68090718db89ba4f5e7d95603d845941d5c6 100644 (file)
  */
  
 /**
+ * This application is used to test the threaded version of the API for accessing
+ * the software based SineSensor usable by any platform for demonstration purposes.
+ * 
+ * This application simply takes sensor readings in an infinite loop from the
+ * SineSensor and forwards them over the serial interface.  Upon successful
+ * transmission, LED0 is toggled.
+ *
  * @author Kevin Klues (klueska@cs.stanford.edu)
  */
 
@@ -37,11 +44,11 @@ configuration TestSineSensorAppC {
 }
 implementation {
   components MainC, TestSineSensorC;
-  components new ThreadC(100) as MainThread;
+  components new ThreadC(150) as MainThread;
   
   components new BlockingSineSensorC();
   components BlockingSerialActiveMessageC;
-  components new BlockingSerialAMSenderC(100);
+  components new BlockingSerialAMSenderC(228);
 
   MainC.Boot <- TestSineSensorC;
   MainC.SoftwareInit -> BlockingSineSensorC;