Browse Source

fixed compiling error in at91sam9260

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2182 bbd45198-f89e-11dd-88c7-29a3b14d5316
dzzxzz@gmail.com 13 years ago
parent
commit
2c45dc2041
2 changed files with 5 additions and 0 deletions
  1. 2 0
      bsp/at91sam9260/SConscript
  2. 3 0
      bsp/at91sam9260/rtconfig.h

+ 2 - 0
bsp/at91sam9260/SConscript

@@ -14,6 +14,8 @@ if GetDepend('RT_USING_SDIO'):
 if GetDepend('RT_USING_LWIP'):
 	src_drv += ['macb.c']
 
+if GetDepend('RT_USING_I2C') and GetDepend('RT_USING_I2C_BITOPS'):
+	src_drv += ['at91_i2c_gpio.c']
 
 src	= File(src_bsp + src_drv)
 CPPPATH = [RTT_ROOT + '/bsp/at91sam9260']

+ 3 - 0
bsp/at91sam9260/rtconfig.h

@@ -121,6 +121,9 @@
 
 #define RT_USING_SDIO
 
+#define RT_USING_I2C
+#define RT_USING_I2C_BITOPS
+
 #define RT_USING_DBGU
 /* #define RT_USING_UART0 */
 /* #define RT_USING_UART1 */