]> oss.titaniummirror.com Git - tinyos-2.x.git/commit
Teach tos-storage-stm25p to derive NUM_SECTORS and SECTOR_SIZE.
authorR. Steve McKown <rsmckown@gmail.com>
Thu, 8 Apr 2010 19:50:41 +0000 (13:50 -0600)
committerR. Steve McKown <rsmckown@gmail.com>
Fri, 7 May 2010 19:49:20 +0000 (13:49 -0600)
commitae4db03da92232d8cd4725dd87149d1103e70d7d
tree93b7c68934c2dfabbc8513b805a1a735e13a18c0
parent9abf8fcaaf1aceee961c736cd60320ed0943c71a
Teach tos-storage-stm25p to derive NUM_SECTORS and SECTOR_SIZE.

The stm25p driver is suitable for different sizes of flash parts, such as the
commonly used 8Mb M25P80 and the less commonly used 1Mb M25P10A.  The driver
defines the flash configuration in Stm25p.h.  By having tos-storage-stm25p walk
the @includes for the platform, as found in the .platform file, each platform
can ensure that a Stm25p.h with correct content for its flash part is found
for use by the driver and this script.
tools/tinyos/misc/tos-storage-stm25p.in