]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/tmirws/sensors/AnemometerReadC.nc
AnemometerReadC changes
[tinyos-2.x.git] / tos / platforms / tmirws / sensors / AnemometerReadC.nc
index e454adb172a6c41df19bd8b94e0cacbe6a4f8736..22e291b2d02716e9b740c6c4755cfabe014ba40a 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>
  */
 configuration AnemometerReadC {
   provides {
     interface StdControl;
-    interface AsyncGet<uint16_t> as Count;
+    interface Get<uint16_t> as Revolutions;
   }
 }
 implementation {
-  components MainC;
-  MainC.SoftwareInit -> AnemometerReadP.Init;
-
   components AnemometerReadP;
   StdControl = AnemometerReadP;
-  Count = AnemometerReadP;
+  Revolutions = AnemometerReadP;
+
+  components MainC;
+  MainC.SoftwareInit -> AnemometerReadP.Init;
 
   components Msp430CounterMicroC;
   AnemometerReadP.SpinCounter -> Msp430CounterMicroC;