]> 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>
Thu, 4 Nov 2010 14:25:29 +0000 (08:25 -0600)
commit8663a8d0415852bd7f8a6901e259f052f347339e
tree698855a12b5257a8bfceef1da87bd339498b1a8f
parent08527f26f2a683c24d1b979d4e521348b5e09d9e
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