[Tinyos Core WG] 2.0.2 release plans

David Gay dgay42 at gmail.com
Tue Jul 10 10:55:45 PDT 2007


On 7/10/07, Vlado Handziski <handzisk at tkn.tu-berlin.de> wrote:
> Do we have any policy again mixing of platform-dependent and
> platform-independent applications in the top /apps dir? This would be the
> only platform specific app in the top dir apart from the TOSSIM apps. the
> /apps/tests is currently a mixed bag.

I'm happy to have it live elsewhere, but note that:
-  it's only platform dependent because of sensor requirements, i.e.,
with an appropriate sensor board it could run elsewhere.
- I'm not sure how we should organise platform/sensorboard
dependencies - platform or sensorboard dependent directories don't
seem to really cut it either

Note btw that in 1.x we attempted to specify in Makefiles which
platforms were supported (check PLATFORMS= lines, IIRC) - that's
another one of making it more explicit that an app is not supported
everywhere.

> On another note. One of the things I hated most in TinyOS 1.x were the
> platform #ifdefs. We managed to keep the T2 code pretty clear  until now,
> but with this app,

Well for AntiTheft, the #if's are for getting access to the
LowPowerListening interface. If we specify a place/name for that to
live, we can remove them...

> platform dependent code in separate components, with clear interfaces
> between them and the platform-independent logic.

Maybe we can setup a convention of providing platform-named
directories in apps to support this? (the Makefile can say PFLAGS +=
-I%p to support that)

i.e., AntiTheft/Nodes/mica2 would contain a LowPowerListeningC
component with the appropriate wiring to LowPowerListening? (not for
2.0.2, though)

David


More information about the Tinyos-2.0wg mailing list