[Tinyos Core WG] non-TEP code

Philip Levis pal at cs.stanford.edu
Mon Nov 27 23:04:45 PST 2006


On Nov 27, 2006, at 10:17 PM, Gilman Tolle wrote:

>
>
> If you want to factor out a nice generic piece of debouncing logic
> that converts a hardware-independent GeneralIO+GpioInterrupt pair into
> a higher-level Button or Get+Notify interface, then perhaps it could
> go in 'chips/button', where other driver authors could use it if they
> choose.
>
> But as for trying to decide whether all buttons on all platforms
> should provide the same standardized interface... I'd suggest leaving
> this one up to the platform maintainers.

Good points. My thought is that if the interface name "Button" is  
being used, then it needs to be the general interface. But if it's  
that, it doesn't seem like what we're talking about is a button,  
rather a contact sensor. So while the component might be named  
"TelosResetButtonC", its interface might be ContactSensor.

Just going down the platform-specific route seems fairly reasonable  
too. TelosButton, etc.

I think these distinctions come from the differences between  
maintaining a platform-specific software base (Boomerang) and a cross- 
platform software base (2.x).

Phil


More information about the Tinyos-2.0wg mailing list