X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fio%2Flm3s.h;h=af8153847707e4e46abae4dfa9eeffe5d45f4c67;hb=489b283ff1f2f430ec47cbd2e1fc477aa033ce98;hp=b06f83bc2f2f51d958c258bdae4992254c827d62;hpb=ba50869a35f866875adc483ea9b807133c6807c2;p=bertos.git diff --git a/bertos/cpu/cortex-m3/io/lm3s.h b/bertos/cpu/cortex-m3/io/lm3s.h index b06f83bc..af815384 100644 --- a/bertos/cpu/cortex-m3/io/lm3s.h +++ b/bertos/cpu/cortex-m3/io/lm3s.h @@ -54,8 +54,20 @@ #if CPU_CM3_LM3S1968 #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) +#else + #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 i2c are defined for select cpu + #error No embedded definition for select cpu #endif #endif /* LM3S_H */