X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fio%2Flm3s.h;h=9720f1752e8f3524b970bf6d829103d569aaf142;hb=a0ba2de64a3964445b392a269ac820c03c5b8385;hp=93c14e1f4351149aeb64b876b09f6024686f8c87;hpb=bf5053552ca4143f188cd083ad401edd7f99a3bb;p=bertos.git diff --git a/bertos/cpu/cortex-m3/io/lm3s.h b/bertos/cpu/cortex-m3/io/lm3s.h index 93c14e1f..9720f175 100644 --- a/bertos/cpu/cortex-m3/io/lm3s.h +++ b/bertos/cpu/cortex-m3/io/lm3s.h @@ -26,28 +26,50 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. * - * Copyright 2007 Develer S.r.l. (http://www.develer.com/) + * Copyright 2010 Develer S.r.l. (http://www.develer.com/) * * --> * - * \version $Id$ - * - * \author Manuele Fanelli - * - * Luminary Micro Stellaris LM3S common definitions. - * This file is based on NUT/OS implementation. See license below. + * \author Andrea Righi */ #ifndef LM3S_H #define LM3S_H #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" +#include "lm3s_adc.h" -#if CPU_ARM_LM3S1968 - #include "lm3s1968.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) +#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 +/* Flash memory mapping */ +#if CPU_CM3_LM3S1968 || CPU_CM3_LM3S8962 + #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 */