X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=bertos%2Fcpu%2Farm%2Fio%2Fat91sam7.h;h=2783307faf27bf130e85c351eb57687c5d582c42;hb=507e95236d43b2aa6d6b6e46bde5cb92345ab034;hp=c983f50beaa4066523f33a705e2d60787e5a3984;hpb=9a9d8e33e942f8a2af0828181203c4a1def62adb;p=bertos.git diff --git a/bertos/cpu/arm/io/at91sam7.h b/bertos/cpu/arm/io/at91sam7.h index c983f50b..2783307f 100644 --- a/bertos/cpu/arm/io/at91sam7.h +++ b/bertos/cpu/arm/io/at91sam7.h @@ -144,6 +144,17 @@ #endif +#if 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 + +#else + #error Memory size definition for selected ARM CPU +#endif + #include "at91_aic.h" #include "at91_pit.h" #include "at91_pmc.h"