X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fio%2Flm3s.h;h=af8153847707e4e46abae4dfa9eeffe5d45f4c67;hb=3346609215ef7c3afaf2eb78a2a669c4c14ad555;hp=fa976ca6ca6e81d2eeadc9e68702ddebd0477604;hpb=42915fdb2ea25ed68b8bb835b78c2bca9b32f1f5;p=bertos.git diff --git a/bertos/cpu/cortex-m3/io/lm3s.h b/bertos/cpu/cortex-m3/io/lm3s.h index fa976ca6..af815384 100644 --- a/bertos/cpu/cortex-m3/io/lm3s.h +++ b/bertos/cpu/cortex-m3/io/lm3s.h @@ -39,14 +39,35 @@ #include #include +#include "lm3s_com.h" +#include "lm3s_types.h" +#include "lm3s_ints.h" +#include "lm3s_nvic.h" +#include "lm3s_sysctl.h" +#include "lm3s_gpio.h" +#include "lm3s_memmap.h" +#include "lm3s_uart.h" +#include "lm3s_ssi.h" +#include "lm3s_i2c.h" -#if CPU_ARM_LM3S1968 - #include "lm3s1968.h" - #include "lm3s_types.h" - #include "lm3s_ints.h" - #include "lm3s_nvic.h" + +#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 Missing I/O definitions for CPU. + #error No embedded definition for select cpu #endif #endif /* LM3S_H */