Add i2c pins definition. Use include for all lm3s.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 12 Jul 2010 10:43:27 +0000 (10:43 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 12 Jul 2010 10:43:27 +0000 (10:43 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4024 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/cortex-m3/io/lm3s.h

index 3ff883257fd8a102a5b06010170e500ced2594da..b06f83bc2f2f51d958c258bdae4992254c827d62 100644 (file)
 #include <cpu/detect.h>
 #include <cfg/compiler.h>
 
-#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 */