[Tinyos Core WG] Re: include in volume files

David Gay dgay42 at gmail.com
Wed Apr 11 14:39:17 PDT 2007


On 4/5/07, David Gay <dgay42 at gmail.com> wrote:
> I propose adding a
>   <include>PATH</include>
> directive to volume xml files, which would be allowed within
> <volume_table>. The PATH would get the same expansion treatment that
> ncc gives -I directive:
>   %T replaced by TOSDIR
>   %p replaced by platform (note that this will require passing the
> platform to the tos-storage-* commands)
>   %P replaced by the platform directory (not in ncc as of now at least)

Ok, this is now implemented in tos-storage-at45db and
tos-storage-stm25p. Usage example:
dgay at wiseowl:~/motes/2.x/apps/tests/storage/Block$ cat volumes-at45db.xml
<volume_table>
  <volume name="BLOCKTEST" size="262144"/>
  <include>%P/deluge.xml</include>
</volume_table>

And I've checked in:
- changes to the make stuff to invoke the new version of the tools
with the platform information for avr and msp based platforms. Other
microcontrollers would need a change to the line invoking the storage
tool (pass $(PLATFORMDIR) as an argument)
- a sample deluge.xml file in platforms/mica2 - I'll leave it to the
Delugers to decide what this file should really contain and add other
platforms

I have not checked in changes to any volumes-*.xml file in any app.

I have also added %P to the substitutions performed by ncc so that ncc
and the volume storage files have a consistent syntax.

We will need to distribute an updated version of tinyos-tools.

Note: the storage tools now require python 2.4 (should probably stick
that in tinyos-tools prerequisites).

I've tested this reasonably, but not extensively.

David


More information about the Tinyos-2.0wg mailing list