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:
parent
7b17f6254f
commit
accbfbd0d1
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user