X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Farm%2Fio%2Fat91sam7.h;h=5388df0a214cd499847b4ffece7105d4bc7037d0;hb=327806d9c3793f6e250c19df053686e200f1c559;hp=2783307faf27bf130e85c351eb57687c5d582c42;hpb=507e95236d43b2aa6d6b6e46bde5cb92345ab034;p=bertos.git diff --git a/bertos/cpu/arm/io/at91sam7.h b/bertos/cpu/arm/io/at91sam7.h index 2783307f..5388df0a 100644 --- a/bertos/cpu/arm/io/at91sam7.h +++ b/bertos/cpu/arm/io/at91sam7.h @@ -30,7 +30,6 @@ * * --> * - * \version $Id$ * * \author Francesco Sacchi * \author Daniele Basile @@ -144,13 +143,34 @@ #endif -#if CPU_ARM_AT91SAM7S256 || CPU_ARM_AT91SAM7X256 +#if CPU_ARM_AT91SAM7S64 + #define FLASH_MEM_SIZE 0x10000UL ///< Internal flash memory size + #define FLASH_PAGE_SIZE_BYTES 128 ///< Size of cpu flash memory page in bytes + #define FLASH_BANKS_NUM 1 ///< Number of flash banks + #define FLASH_SECTORS_NUM 16 ///< Number of flash sector + #define FLASH_PAGE_PER_SECTOR 32 ///< Number of page for sector + +#elif CPU_ARM_AT91SAM7S128 || CPU_ARM_AT91SAM7X128 + #define FLASH_MEM_SIZE 0x20000UL ///< Internal flash memory size + #define FLASH_PAGE_SIZE_BYTES 256 ///< Size of cpu flash memory page in bytes + #define FLASH_BANKS_NUM 1 ///< Number of flash banks + #define FLASH_SECTORS_NUM 8 ///< Number of flash sector + #define FLASH_PAGE_PER_SECTOR 64 ///< Number of page for sector + +#elif CPU_ARM_AT91SAM7S256 || CPU_ARM_AT91SAM7X256 #define FLASH_MEM_SIZE 0x40000UL ///< Internal flash memory size #define FLASH_PAGE_SIZE_BYTES 256 ///< Size of cpu flash memory page in bytes #define FLASH_BANKS_NUM 1 ///< Number of flash banks #define FLASH_SECTORS_NUM 16 ///< Number of flash sector #define FLASH_PAGE_PER_SECTOR 64 ///< Number of page for sector +#elif CPU_ARM_AT91SAM7S512 || CPU_ARM_AT91SAM7X512 + #define FLASH_MEM_SIZE 0x80000UL ///< Internal flash memory size + #define FLASH_PAGE_SIZE_BYTES 256 ///< Size of cpu flash memory page in bytes + #define FLASH_BANKS_NUM 2 ///< Number of flash banks + #define FLASH_SECTORS_NUM 32 ///< Number of flash sector + #define FLASH_PAGE_PER_SECTOR 64 ///< Number of page for sector + #else #error Memory size definition for selected ARM CPU #endif @@ -170,6 +190,7 @@ #include "at91_spi.h" #include "at91_twi.h" #include "at91_ssc.h" +#include "at91_emac.h" //TODO: add other peripherals /**