1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tools/bossa: add and configure preflash-delay when required

This commit is contained in:
Alexandre Abadie 2019-09-26 08:10:13 +02:00
parent 7b17f6254f
commit accbfbd0d1
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -14,10 +14,19 @@ ifneq (,$(BOSSA_ARDUINO_PREFLASH))
PREFLASHER ?= stty
PREFFLAGS ?= $(STTY_FLAG) $(PROG_DEV) raw ispeed 1200 ospeed 1200 cs8 -cstopb ignpar eol 255 eof 255
FLASHDEPS += preflash
ifneq (,$(PREFLASH_DELAY))
FLASHDEPS += preflash-delay
else
FLASHDEPS += preflash
endif
RESETFFLASG ?= $(STTY_FLAG) $(PORT) raw ispeed 600 ospeed 600 cs8 -cstopb ignpar eol 255 eof 255
RESET ?= $(PREFLASHER) $(RESETFFLASG)
endif
preflash-delay: preflash
sleep $(PREFLASH_DELAY)
# if we go with the default (BOSSA shipped with RIOT), we download and build
# the tool if not already done
ifeq ($(RIOTTOOLS)/bossa-$(BOSSA_VERSION)/bossac,$(FLASHER))