From fd1aabd0417bef53e7ff54df52eba80be5494d56 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 12 Oct 2018 10:44:11 +0200 Subject: half-baked timer implementation for MSP430 and Arduino --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3