summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-01-15 10:16:13 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-01-15 10:16:13 +0100
commit7b8c37d235c77d881db4184a798fc4b72a1fa279 (patch)
tree974caf26a3964f1650285ae80f6c924d29474abd /Makefile
parentc374e91391d3e58295375f439b15fe888bcdb3bd (diff)
Add Software I2C implementation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a6f03c9..b7089b4 100644
--- a/Makefile
+++ b/Makefile
@@ -27,6 +27,11 @@ ifneq ($(findstring sharp96,${drivers}), )
COMMON_FLAGS += -DSHARP96_CS_PIN=GPIO::${sharp96_cs_pin}
endif
+ifneq ($(findstring softi2c,${drivers}), )
+ TARGETS += src/driver/soft_i2c.cc
+ COMMON_FLAGS += -DDRIVER_SOFTI2C
+endif
+
ifeq (${timer_cycles}, 1)
COMMON_FLAGS += -DTIMER_CYCLES
endif