summaryrefslogtreecommitdiff
path: root/src/arch/msp430fr5969lp
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-07-12 10:58:56 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-07-12 10:58:56 +0200
commite632d5c4a0541385c37af6ef9af3373fcc100adf (patch)
treee9b59b1039fac74662d493e67891499dc7c2fafe /src/arch/msp430fr5969lp
parent68eb5f7bf403f4a8cfc42b54b6a7fea087d34960 (diff)
Only include hw i2c drivers if sw i2c is not active
Diffstat (limited to 'src/arch/msp430fr5969lp')
-rw-r--r--src/arch/msp430fr5969lp/Makefile.inc6
1 files changed, 4 insertions, 2 deletions
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