[Tinyos Core WG] Platform independent capture-component

Philip Levis pal at cs.stanford.edu
Wed Jun 20 08:55:22 PDT 2007


Martin Leopold wrote:
> Hi Core.
> About a month ago I asked a question regarding the relationship between
> timers and capture. This time I have some more general questions on
> capture:
>
> * I would like to make a platform-independent (or close to) application
> that uses some form of capture. As far as I can tell there is not much
> to help me do this in T2 right now. Is there a reason for this? Ie. is
> it to platform specific to generalize?
>   
Do you mean in terms of interfaces, or in terms of components? I suppose 
that you can combine a GpioCapture with a Counter in order to get a 
wider timebase. There aren't existing library components to do this, but 
if you were interested in writing one it would be a useful addition. At 
some point the code will have to be platform-specific because the input 
pin is platform-specific.


> * The most general interface I can find is GpioCapture which chooses a
> width of 16 bit for time-base. This may not be enough for my purpose and
> it would be nice to be able to use the 32-bit wide timer units. Though
> these would be emulated on many platform, I can't imagine it would be to
> hard to make it work. This of course touches on my previous question
> (which timebase of multiple timebases is in fact referred to by
> capture)
The interface comments state pretty clearly it's 32kHz.

Phil


More information about the Tinyos-2.0wg mailing list