diff options
| author | [email protected] <[email protected]> | 2012-06-25 04:02:59 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-06-25 04:02:59 +0000 |
| commit | 2c45dc204148124736eb93b010b4ea5152e61ed6 (patch) | |
| tree | d278f6f64846665656c9064fcab54e289bd389fc /bsp | |
| parent | b5ce8cb195abdcadba279280aeff5e15c1c25d8e (diff) | |
fixed compiling error in at91sam9260
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2182 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp')
| -rwxr-xr-x | bsp/at91sam9260/SConscript | 2 | ||||
| -rwxr-xr-x | bsp/at91sam9260/rtconfig.h | 3 |
2 files changed, 5 insertions, 0 deletions
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 */
|
