Add other flash info for sam3 series.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 28 Sep 2011 14:34:13 +0000 (14:34 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 28 Sep 2011 14:34:13 +0000 (14:34 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5113 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/cortex-m3/io/sam3.h

index 8fa50e6d6489b4cb2b3028114db0eec57031c9e3..688eda9b55a5a030ce6ca3b18eedbb8b35688943 100644 (file)
        #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