diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-10-12 10:44:11 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-10-12 10:44:11 +0200 |
commit | fd1aabd0417bef53e7ff54df52eba80be5494d56 (patch) | |
tree | e0cb6183e82f1fbf78fb66c673eee8cb497bc658 /Makefile | |
parent | 4853a5593cc6147e1851e537b46a5128792939a5 (diff) |
half-baked timer implementation for MSP430 and Arduino
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |