From bda22fb5f8c9267943b9653031d279fe14edcd2a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 5 Mar 2019 11:24:06 +0100 Subject: sharp96: Set default pins in Makefile (it's commonly used on MSP430FR boards) --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index f21f9b9..cab89b1 100644 --- a/Makefile +++ b/Makefile @@ -59,6 +59,9 @@ endif ifneq ($(findstring sharp96,${drivers}), ) CXX_TARGETS += src/driver/sharp96.cc + sharp96_power_pin ?= p4_2 + sharp96_en_pin ?= p4_3 + sharp96_cs_pin ?= p2_4 COMMON_FLAGS += -DDRIVER_SHARP6 COMMON_FLAGS += -DSHARP96_POWER_PIN=GPIO::${sharp96_power_pin} COMMON_FLAGS += -DSHARP96_EN_PIN=GPIO::${sharp96_en_pin} -- cgit v1.2.3