X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=apps%2Ftosthreads%2Fcapps%2FTestSineSensor%2FTestSineSensor.c;h=c6483ea65ffb05d863f81699d5eb4f30f44f474b;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hp=2f676b22c1c37434cd9d865e9de7d4a79f18fd69;hpb=0c93ead951bb9666631e78a7f7ebc06cd364a171;p=tinyos-2.x.git diff --git a/apps/tosthreads/capps/TestSineSensor/TestSineSensor.c b/apps/tosthreads/capps/TestSineSensor/TestSineSensor.c index 2f676b22..c6483ea6 100644 --- a/apps/tosthreads/capps/TestSineSensor/TestSineSensor.c +++ b/apps/tosthreads/capps/TestSineSensor/TestSineSensor.c @@ -30,6 +30,13 @@ */ /** + * 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 */ @@ -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 +} +