]> oss.titaniummirror.com Git - tinyos-2.x.git/commit
tmimsp: support 4 KB sectors on AT25DF041A
authorR. Steve McKown <rsmckown@gmail.com>
Tue, 23 Oct 2012 23:45:35 +0000 (17:45 -0600)
committerR. Steve McKown <rsmckown@gmail.com>
Tue, 23 Oct 2012 23:45:35 +0000 (17:45 -0600)
commitcb0b39561a9839427409a96cf430b2c51b63d63d
tree554192bb2cae38f41f98180adf71949faf332d9b
parentc40d959ed0b5880f73809836eadddd72a7c277d6
tmimsp: support 4 KB sectors on AT25DF041A

The tmimsp platform family by default uses an Atmel AT25DF041A serial
FLASH part which supports 4 KB erase blocks.  Since the part's
communications protocol is a super-set of that supported by the STM25P
family, a private Stm25PSpiP that issues 0x20 4 KB erase block instead
of the default 0xd8 64 KB erase block command, and a companion Stm25p.h
that properly defines the sector size (aka erase block size) allows the
part to be treated as an array of 4 KB sectors.  This is a huge win for
most application uses of FLASH.
tos/platforms/tmimsp/common/chips/at25df/Stm25p.h
tos/platforms/tmimsp/common/chips/at25df/Stm25pSpiP.nc [new file with mode: 0644]