X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fio%2Fsam3.h;h=8fa50e6d6489b4cb2b3028114db0eec57031c9e3;hb=8a5cb391f6130a8e8de0ae5323ce7004054327f2;hp=b848667f73244d011276f0080e8a01ba78bc239b;hpb=4b9b04f3df2d9d2596ad25321cc4a44c0ecee51d;p=bertos.git diff --git a/bertos/cpu/cortex-m3/io/sam3.h b/bertos/cpu/cortex-m3/io/sam3.h index b848667f..8fa50e6d 100644 --- a/bertos/cpu/cortex-m3/io/sam3.h +++ b/bertos/cpu/cortex-m3/io/sam3.h @@ -159,6 +159,7 @@ #include "sam3_twi.h" #include "sam3_ssc.h" #include "sam3_hsmci.h" +#include "sam3_chipid.h" /** * U(S)ART I/O pins @@ -338,5 +339,17 @@ #error no ssc pins are defined for this cpu #endif + +#if CPU_CM3_SAM3X8 + #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_PAGES_FOR_BANK 1024 ///< Number pages for each bank + #define FLASH_BASE 0x80000 ///< Start address for bank 0 +#else + #error no internal flash info are defined for this cpu +#endif + + /*\}*/ #endif /* SAM3_H */