From ba50869a35f866875adc483ea9b807133c6807c2 Mon Sep 17 00:00:00 2001 From: asterix Date: Mon, 12 Jul 2010 10:43:27 +0000 Subject: [PATCH] Add i2c pins definition. Use include for all lm3s. git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4024 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/cortex-m3/io/lm3s.h | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/bertos/cpu/cortex-m3/io/lm3s.h b/bertos/cpu/cortex-m3/io/lm3s.h index 3ff88325..b06f83bc 100644 --- a/bertos/cpu/cortex-m3/io/lm3s.h +++ b/bertos/cpu/cortex-m3/io/lm3s.h @@ -39,19 +39,23 @@ #include #include -#if (CPU_CM3_LM3S1968 || CPU_CM3_LM3S8962) - #include "lm3s1968.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_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_CM3_LM3S1968 + #define GPIO_I2C0_SCL_PIN BV(2) + #define GPIO_I2C0_SDA_PIN BV(3) #else - #error Missing I/O definitions for CPU. + #error No i2c are defined for select cpu #endif #endif /* LM3S_H */ -- 2.25.1