]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/tmirws/sensors/AnemometerReadP.nc
AnemometerReadC changes
[tinyos-2.x.git] / tos / platforms / tmirws / sensors / AnemometerReadP.nc
index 3b4a54507c9d655cc33f85f9fbc10715661648a8..ef8a5e83255abbcdaa6818df266e9a769efcf419 100644 (file)
@@ -28,7 +28,7 @@
  */
  
 /**
- * Instantaneous anemometer read; depends upon prior call for correct timing.
+ * Returns the number of anemometer revolutions since the last read.
  * 
  * @author R. Steve McKown <rsmckown@gmail.com>
  */
@@ -39,7 +39,7 @@ module AnemometerReadP {
   provides {
     interface Init;
     interface StdControl;
-    interface AsyncGet<uint16_t> as Count;
+    interface Get<uint16_t> as Revolutions;
   }
   uses
     interface Counter<TMicro,uint16_t> as SpinCounter;
@@ -74,7 +74,7 @@ implementation {
     atomic TACTL &= ~(MC1|MC0);
   }
 
-  async command uint16_t Count.get()
+  command uint16_t Revolutions.get()
   {
     atomic {
       uint16_t newCount;