X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fio%2Flm3s.h;h=018b42bac87f5337a78d991504906a9bc23f0f41;hb=ed52be9771baf970f4dbfb293d902d459e3f9513;hp=98b1ffb769e10255e28e693d7b6876aa17d7482e;hpb=0d4c0c64f736f37dba565aa9e113d3920ef905f9;p=bertos.git diff --git a/bertos/cpu/cortex-m3/io/lm3s.h b/bertos/cpu/cortex-m3/io/lm3s.h index 98b1ffb7..018b42ba 100644 --- a/bertos/cpu/cortex-m3/io/lm3s.h +++ b/bertos/cpu/cortex-m3/io/lm3s.h @@ -49,6 +49,7 @@ #include "lm3s_uart.h" #include "lm3s_ssi.h" #include "lm3s_i2c.h" +#include "lm3s_adc.h" #if CPU_CM3_LM3S1968 @@ -61,4 +62,13 @@ #error No i2c pins are defined for select cpu #endif + +/* Flash memory mapping */ +#if CPU_CM3_LM3S1968 + #define FLASH_SIZE 0x40000 //< 256KiB + #define FLASH_PAGE_SIZE 0x400 //< 1KiB +#else + #error No embedded definition for select cpu +#endif + #endif /* LM3S_H */