X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fio%2Flm3s.h;h=9720f1752e8f3524b970bf6d829103d569aaf142;hb=440bd56c360f3973e7e17a9b7485ca67af5780d2;hp=98b1ffb769e10255e28e693d7b6876aa17d7482e;hpb=5c77344df12ac768e7b53e0085ad08de21513d2f;p=bertos.git diff --git a/bertos/cpu/cortex-m3/io/lm3s.h b/bertos/cpu/cortex-m3/io/lm3s.h index 98b1ffb7..9720f175 100644 --- a/bertos/cpu/cortex-m3/io/lm3s.h +++ b/bertos/cpu/cortex-m3/io/lm3s.h @@ -49,16 +49,27 @@ #include "lm3s_uart.h" #include "lm3s_ssi.h" #include "lm3s_i2c.h" - +#include "lm3s_adc.h" #if CPU_CM3_LM3S1968 - #define GPIO_I2C0_SCL_PIN BV(2) - #define GPIO_I2C0_SDA_PIN BV(3) + #define GPIO_I2C0_SCL_PIN BV(2) + #define GPIO_I2C0_SDA_PIN BV(3) + + #define GPIO_I2C1_SCL_PIN BV(6) + #define GPIO_I2C1_SDA_PIN BV(7) +#elif CPU_CM3_LM3S8962 + #define GPIO_I2C0_SCL_PIN BV(2) + #define GPIO_I2C0_SDA_PIN BV(3) +#else + #error No i2c pins are defined for select cpu +#endif - #define GPIO_I2C1_SCL_PIN BV(6) - #define GPIO_I2C1_SDA_PIN BV(7) +/* Flash memory mapping */ +#if CPU_CM3_LM3S1968 || CPU_CM3_LM3S8962 + #define FLASH_SIZE 0x40000 //< 256KiB + #define FLASH_PAGE_SIZE 0x400 //< 1KiB #else - #error No i2c pins are defined for select cpu + #error No embedded definition for select cpu #endif #endif /* LM3S_H */