aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDonald Delmar Davis <don@suspectdevices.com>2013-04-27 00:07:15 -0700
committerDonald Delmar Davis <don@suspectdevices.com>2013-04-27 00:07:15 -0700
commitf0e9aa9335052dcf11d258d5d27040be234d8770 (patch)
tree4d76c0223a84281c9661105fc0eba844a7bdf919 /Makefile
parentcd7f34a357c1035a2c69918131a923e4006544a0 (diff)
Refactor my first attempt into fork of the Lundin code. Add sysex. Create a board file for maple_midi.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1f19f37..8802d72 100644
--- a/Makefile
+++ b/Makefile
@@ -104,9 +104,14 @@ BOARD_USB_PRODUCT_ID := 0003
UPLOAD_ram := $(SUPPORT_PATH)/scripts/reset.py && \
sleep 1 && \
$(DFU) -a0 -d $(BOARD_USB_VENDOR_ID):$(BOARD_USB_PRODUCT_ID) -D $(BUILD_PATH)/$(BOARD).bin -R
+ifeq ($(USB_TYPE),midi)
+UPLOAD_flash := $(SUPPORT_PATH)/scripts/sysexreset.py && \
+ $(DFU) -a1 -d $(BOARD_USB_VENDOR_ID):$(BOARD_USB_PRODUCT_ID) -D $(BUILD_PATH)/$(BOARD).bin -R
+else
UPLOAD_flash := $(SUPPORT_PATH)/scripts/reset.py && \
sleep 1 && \
$(DFU) -a1 -d $(BOARD_USB_VENDOR_ID):$(BOARD_USB_PRODUCT_ID) -D $(BUILD_PATH)/$(BOARD).bin -R
+endif
# Conditionally upload to whatever the last build was
install: INSTALL_TARGET = $(shell cat $(BUILD_PATH)/build-type 2>/dev/null)