X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Fplatforms%2Ftmimsp%2Fcommon%2Fchips%2Fat25df%2FStm25p.h;fp=tos%2Fplatforms%2Ftmimsp%2Fcommon%2Fchips%2Fat25df%2FStm25p.h;h=e8ad229f79deb4bef564b310e81900e53bb817f4;hp=a8bfd745b076b464d4efc53c6f7d46af921e6762;hb=cb0b39561a9839427409a96cf430b2c51b63d63d;hpb=c40d959ed0b5880f73809836eadddd72a7c277d6 diff --git a/tos/platforms/tmimsp/common/chips/at25df/Stm25p.h b/tos/platforms/tmimsp/common/chips/at25df/Stm25p.h index a8bfd745..e8ad229f 100644 --- a/tos/platforms/tmimsp/common/chips/at25df/Stm25p.h +++ b/tos/platforms/tmimsp/common/chips/at25df/Stm25p.h @@ -30,10 +30,14 @@ /** * This header must override the one found in TOS/chips/stm25p to account * for the differences in the Atmel AT25DF041A, which is generally compatible - * with the Numonyx (formerly ST) M25P family. + * with the Numonyx (formerly ST) M25P family. The part uses a modified + * Stm25pSpiP.nc file, in this directory, to support 4 KB erase blocks (aka 4 KB + * sector size). * * Derived from original Stm25p.h by Arch Rock Corporation in * TOSDIR/chips/stm25p. + * + * @author R. Steve McKown */ #ifndef __STM25P_H__ /* do not change this header definition */ @@ -45,10 +49,10 @@ typedef storage_addr_t stm25p_addr_t; typedef storage_len_t stm25p_len_t; enum { - STM25P_NUM_SECTORS = 8, - STM25P_SECTOR_SIZE_LOG2 = 16, + STM25P_NUM_SECTORS = 128, + STM25P_SECTOR_SIZE_LOG2 = 12, STM25P_SECTOR_SIZE = 1L << STM25P_SECTOR_SIZE_LOG2, - STM25P_SECTOR_MASK = 0xffff, + STM25P_SECTOR_MASK = 0x0fff, STM25P_PAGE_SIZE_LOG2 = 8, STM25P_PAGE_SIZE = 1 << STM25P_PAGE_SIZE_LOG2, STM25P_PAGE_MASK = STM25P_PAGE_SIZE - 1,