X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fio%2Fsam3.h;h=3d007d50b2a037ae8a20e5a36f8ae0a3fe0bfd17;hb=6970f4233dd70293d45f2df4406c581128e887dc;hp=8b69cb4480fe2b878ab2875415d8cce2f239c925;hpb=999722d2dbf98a30eb6ba6f7e6132c28e802ca54;p=bertos.git diff --git a/bertos/cpu/cortex-m3/io/sam3.h b/bertos/cpu/cortex-m3/io/sam3.h index 8b69cb44..3d007d50 100644 --- a/bertos/cpu/cortex-m3/io/sam3.h +++ b/bertos/cpu/cortex-m3/io/sam3.h @@ -140,6 +140,7 @@ #include "sam3_sysctl.h" #include "sam3_pdc.h" #include "sam3_pmc.h" +#include "sam3_dmac.h" #include "sam3_smc.h" #include "sam3_sdramc.h" #include "sam3_ints.h" @@ -157,6 +158,8 @@ #include "sam3_tc.h" #include "sam3_twi.h" #include "sam3_ssc.h" +#include "sam3_hsmci.h" +#include "sam3_chipid.h" /** * U(S)ART I/O pins @@ -336,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 0x0 +#else + #error no internal flash info are defined for this cpu +#endif + + /*\}*/ #endif /* SAM3_H */