From 2c45dc204148124736eb93b010b4ea5152e61ed6 Mon Sep 17 00:00:00 2001 From: "dzzxzz@gmail.com" Date: Mon, 25 Jun 2012 04:02:59 +0000 Subject: [PATCH] fixed compiling error in at91sam9260 git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2182 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- bsp/at91sam9260/SConscript | 2 ++ bsp/at91sam9260/rtconfig.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/bsp/at91sam9260/SConscript b/bsp/at91sam9260/SConscript index 6d598a5bff..080e39029c 100755 --- a/bsp/at91sam9260/SConscript +++ b/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'] diff --git a/bsp/at91sam9260/rtconfig.h b/bsp/at91sam9260/rtconfig.h index 478260cc20..308fe1c3b0 100755 --- a/bsp/at91sam9260/rtconfig.h +++ b/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 */ -- GitLab