X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=apps%2Ftosthreads%2Fcapps%2FTestSineSensor%2FTestSineSensor.c;h=c6483ea65ffb05d863f81699d5eb4f30f44f474b;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hp=a74be6c979f24544d0036c13fb6a7dcae38fa223;hpb=87efa2b92935c1260c54250d895d0b3ca4187d7f;p=tinyos-2.x.git diff --git a/apps/tosthreads/capps/TestSineSensor/TestSineSensor.c b/apps/tosthreads/capps/TestSineSensor/TestSineSensor.c index a74be6c9..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 */ @@ -46,7 +53,8 @@ void tosthread_main(void* arg) { while( amSerialStart() != SUCCESS ); for(;;) { while( sinesensor_read(var) != SUCCESS ); - while( amSerialSend(AM_BROADCAST_ADDR, &msg, sizeof(uint16_t), 100) != SUCCESS ); + while( amSerialSend(AM_BROADCAST_ADDR, &msg, sizeof(uint16_t), 228) != SUCCESS ); led0Toggle(); } -} \ No newline at end of file +} +