From e632d5c4a0541385c37af6ef9af3373fcc100adf Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 12 Jul 2018 10:58:56 +0200 Subject: Only include hw i2c drivers if sw i2c is not active --- src/arch/msp430fr5969lp/Makefile.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/arch/msp430fr5969lp') diff --git a/src/arch/msp430fr5969lp/Makefile.inc b/src/arch/msp430fr5969lp/Makefile.inc index bb91973..066a152 100644 --- a/src/arch/msp430fr5969lp/Makefile.inc +++ b/src/arch/msp430fr5969lp/Makefile.inc @@ -4,7 +4,8 @@ CPU = 430x MCU = msp430fr5969 INCLUDES += -Iinclude/msp430fr5969lp -I/opt/msp430/ti/gcc/include -COMMON_FLAGS += -mcpu=${CPU} -mmcu=${MCU} +COMMON_FLAGS += -mcpu=${CPU} -mmcu=${MCU} -DMULTIPASS_ARCH_msp430fr5969lp +COMMON_FLAGS += -DMULTIPASS_ARCH_HAS_I2C CC = /opt/msp430/ti/gcc/bin/msp430-elf-gcc CXX = /opt/msp430/ti/gcc/bin/msp430-elf-g++ @@ -28,7 +29,8 @@ ifneq ($(findstring stdin,${arch_drivers}), ) TARGETS += src/arch/msp430fr5969lp/driver/stdin.cc endif -ifneq ($(findstring i2c,${arch_drivers}), ) +ifneq ($(findstring softi2c,${drivers}), ) +else ($(findstring i2c,${arch_drivers}), ) TARGETS += src/arch/msp430fr5969lp/driver/i2c.cc endif -- cgit v1.2.3