diff --git a/bsp/at91sam9260/SConscript b/bsp/at91sam9260/SConscript index 6d598a5bf..080e39029 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 478260cc2..308fe1c3b 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 */