*/
/**
- * 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>
*/
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;
atomic TACTL &= ~(MC1|MC0);
}
- async command uint16_t Count.get()
+ command uint16_t Revolutions.get()
{
atomic {
uint16_t newCount;