diff options
Diffstat (limited to 'software/ihu/Makefile')
-rw-r--r-- | software/ihu/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/software/ihu/Makefile b/software/ihu/Makefile index 3b4bb1e..e2de034 100644 --- a/software/ihu/Makefile +++ b/software/ihu/Makefile @@ -35,11 +35,12 @@ include ../pic.include.mk DOWNLOADER := ../pic.bootloader/downloader.py BOOT_NAME := IHU +BOOT_PORT := /dev/ttyUSB0 BOOT_BAUD := 57600 +DOWNLOADER_ARGS := --name=$(BOOT_NAME) --device=$(BOOT_PORT) --baud=$(BOOT_BAUD) download: $(HEXFILE) - @$(DOWNLOADER) --name=$(BOOT_NAME) --cmd write $< - @$(DOWNLOADER) --name=$(BOOT_NAME) --cmd verify $< + @$(DOWNLOADER) $(DOWNLOADER_ARGS) --write=$< --verify=$< boot: - @$(DOWNLOADER) --name=$(BOOT_NAME) --cmd boot dummy + @$(DOWNLOADER) $(DOWNLOADER_ARGS) --boot |