From: asterix Date: Wed, 28 Sep 2011 14:34:13 +0000 (+0000) Subject: Add other flash info for sam3 series. X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=7166a2cb55a257889ffc8f0199d048409449f89a;p=bertos.git Add other flash info for sam3 series. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5113 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/cortex-m3/io/sam3.h b/bertos/cpu/cortex-m3/io/sam3.h index 8fa50e6d..688eda9b 100644 --- a/bertos/cpu/cortex-m3/io/sam3.h +++ b/bertos/cpu/cortex-m3/io/sam3.h @@ -346,6 +346,18 @@ #define FLASH_BANKS_NUM 2 ///< Number of flash banks #define FLASH_PAGES_FOR_BANK 1024 ///< Number pages for each bank #define FLASH_BASE 0x80000 ///< Start address for bank 0 +#elif CPU_CM3_SAM3U4 + #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 2 ///< Number of flash banks + #define FLASH_PAGES_FOR_BANK 512 ///< Number pages for each bank + #define FLASH_BASE 0x80000 ///< Start address for bank 0 +#elif CPU_CM3_SAM3N4 || CPU_CM3_SAM3S4 + #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_PAGES_FOR_BANK 1024 ///< Number pages for each bank + #define FLASH_BASE 0x400000 ///< Start address for bank 0 #else #error no internal flash info are defined for this cpu #endif