summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-01-11 14:23:07 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-01-11 14:23:07 +0100
commit0d84f5e512c4148bc45dd26eea177e09c0a21b56 (patch)
tree8d8ae62a68f11482d1c25f32d86cf1c43246f61d /Makefile
parent1978e406b816d463dc7feab083ce30638e8b787a (diff)
Add Sharp96 display driver, split up msp430 SPI into a1 / b
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a6b4639..38b6571 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,14 @@ ifneq ($(findstring lm75,${drivers}), )
COMMON_FLAGS += -DDRIVER_LM75
endif
+ifneq ($(findstring sharp96,${drivers}), )
+ TARGETS += src/driver/sharp96.cc
+ COMMON_FLAGS += -DDRIVER_SHARP6
+ COMMON_FLAGS += -DSHARP96_POWER_PIN=GPIO::${sharp96_power_pin}
+ COMMON_FLAGS += -DSHARP96_EN_PIN=GPIO::${sharp96_en_pin}
+ COMMON_FLAGS += -DSHARP96_CS_PIN=GPIO::${sharp96_cs_pin}
+endif
+
ifeq (${timer_cycles}, 1)
COMMON_FLAGS += -DTIMER_CYCLES
endif