Benjamin Valentin 8f0fa9411c boards/samd21-arduino-bootloader: rename to samdx1-arduino-bootloader
The bootloader itself is called `uf2-samdx1` and supports both samd21
and samd51.

Rename the module accordingly.
2021-02-09 19:44:03 +01:00

17 lines
426 B
Makefile

# setup the flash tool used
# Bossa is the default programmer
PROGRAMMER ?= bossa
ifeq ($(PROGRAMMER),bossa)
# by default, we use BOSSA to flash this board and take into account the
# preinstalled Arduino bootloader. ROM_OFFSET skips the space taken by
# such bootloader.
ifeq ($(CPU),samd5x)
ROM_OFFSET ?= 0x4000
else
ROM_OFFSET ?= 0x2000
endif
BOSSA_ARDUINO_PREFLASH = yes
PREFLASH_DELAY ?= 2
endif