]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tosthreads/capps/TestSineSensor/TestSineSensor.c
Merge TinyOS 2.1.1 into master.
[tinyos-2.x.git] / apps / tosthreads / capps / TestSineSensor / TestSineSensor.c
index 2f676b22c1c37434cd9d865e9de7d4a79f18fd69..c6483ea65ffb05d863f81699d5eb4f30f44f474b 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>
  */
 
@@ -49,4 +56,5 @@ void tosthread_main(void* arg) {
     while( amSerialSend(AM_BROADCAST_ADDR, &msg, sizeof(uint16_t), 228) != SUCCESS );
     led0Toggle();
   }
-}
\ No newline at end of file
+}
+