summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-10-12 10:44:11 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-10-12 10:44:11 +0200
commitfd1aabd0417bef53e7ff54df52eba80be5494d56 (patch)
treee0cb6183e82f1fbf78fb66c673eee8cb497bc658 /Makefile
parent4853a5593cc6147e1851e537b46a5128792939a5 (diff)
half-baked timer implementation for MSP430 and Arduino
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8baba0e..224b71f 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,11 @@ ifneq ($(findstring am2320,${drivers}), )
COMMON_FLAGS += -DDRIVER_AM2320
endif
+ifneq ($(findstring ccs811,${drivers}), )
+ TARGETS += src/driver/ccs811.cc
+ COMMON_FLAGS += -DDRIVER_CCS811
+endif
+
ifneq ($(findstring eeprom24lc64,${drivers}), )
TARGETS += src/driver/eeprom24lc64.cc
COMMON_FLAGS += -DDRIVER_EEPROM24LC64
@@ -52,6 +57,14 @@ ifneq ($(findstring softi2c,${drivers}), )
COMMON_FLAGS += -DDRIVER_SOFTI2C
endif
+ifneq (${i2c_freq}, )
+ COMMON_FLAGS += -DF_I2C=${i2c_freq}
+endif
+
+ifneq (${timer_freq}, )
+ COMMON_FLAGS += -DF_TIMER=${timer_freq}
+endif
+
ifeq (${softi2c_pullup}, 1)
COMMON_FLAGS += -DSOFTI2C_PULLUP
endif