]> 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>
Wed, 26 May 2010 20:33:15 +0000 (14:33 -0600)
commitcbbc41462d632830e873e9e283c68aa38d81784a
tree83e870dc6655aa83e2f58fb5040669e4bfdb217a
parent4d7ece6ce686b8cbac82be5f9868aa86878cf45b
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