From 6192b8ceda6b34c90eea39f4d6c7bea709ad3611 Mon Sep 17 00:00:00 2001
From: Daniel Friesel <derf@finalrewind.org>
Date: Fri, 19 Oct 2018 09:35:10 +0200
Subject: [PATCH] msp430: Notify software if I2C driver is active

---
 src/arch/msp430fr5969lp/Makefile.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/arch/msp430fr5969lp/Makefile.inc b/src/arch/msp430fr5969lp/Makefile.inc
index d639a9d..aeeb213 100644
--- a/src/arch/msp430fr5969lp/Makefile.inc
+++ b/src/arch/msp430fr5969lp/Makefile.inc
@@ -34,6 +34,7 @@ endif
 ifneq ($(findstring softi2c,${drivers}), )
 else ifneq ($(findstring i2c,${arch_drivers}), )
 	TARGETS += src/arch/msp430fr5969lp/driver/i2c.cc
+	COMMON_FLAGS += -DDRIVER_I2C
 endif
 
 ifneq ($(findstring spi_a1,${arch_drivers}), )
-- 
GitLab