]> 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>
Sat, 10 Apr 2010 00:35:12 +0000 (18:35 -0600)
commit8205c3ed1905491954757c0536f86a33cc39d34f
tree91e1170ecb1ea43fa25aa2e3c705643d81b8cbb9
parentc2d662c7063e1b55bfb2f9c09e2b308c36a90089
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