summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-07-10 14:53:45 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2020-07-10 14:53:45 +0200
commit4065d4f5d506d7a0e562e98b06d2afd01e529df6 (patch)
tree804a83e8e9e3814aeb2258088cd851a120f61861 /Makefile
parentda828589e00f1d709053431c2249cb53c5cee37f (diff)
add resistive load driver for energy measurement device evaluation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d008049..5608e8f 100644
--- a/Makefile
+++ b/Makefile
@@ -130,6 +130,19 @@ ifneq ($(findstring sharp96,${drivers}), )
COMMON_FLAGS += -DSHARP96_CS_PIN=GPIO::${sharp96_cs_pin}
endif
+ifneq ($(findstring resistive_load,${drivers}), )
+ CXX_TARGETS += src/driver/resistive_load.cc
+ resistor1_pin ?= p3_0
+ resistor2_pin ?= p3_1
+ resistor3_pin ?= p3_2
+ resistor4_pin ?= p3_4
+ COMMON_FLAGS += -DDRIVER_RESISTIVE_LOAD
+ COMMON_FLAGS += -DRESISTIVE_LOAD_PIN1=GPIO::${resistor1_pin}
+ COMMON_FLAGS += -DRESISTIVE_LOAD_PIN2=GPIO::${resistor2_pin}
+ COMMON_FLAGS += -DRESISTIVE_LOAD_PIN3=GPIO::${resistor3_pin}
+ COMMON_FLAGS += -DRESISTIVE_LOAD_PIN4=GPIO::${resistor4_pin}
+endif
+
ifneq ($(findstring softi2c,${drivers}), )
CXX_TARGETS += src/driver/soft_i2c.cc
COMMON_FLAGS += -DDRIVER_SOFTI2C