grouping more samd21 boards

This commit is contained in:
hathach
2020-11-28 11:45:24 +07:00
parent fac9151c73
commit 50977eef0e
20 changed files with 102 additions and 810 deletions
@@ -1,16 +1,9 @@
CFLAGS += -D__SAMD21G18A__
# All source paths should be relative to the top level.
LD_FILE = $(BOARD_PATH)/feather_m0_express.ld
LD_FILE = $(BOARD_PATH)/$(BOARD).ld
# For flash-jlink target
JLINK_DEVICE = ATSAMD21G18
# flash using bossac at least version 1.8
# can be found in arduino15/packages/arduino/tools/bossac/
# Add it to your PATH or change BOSSAC variable to match your installation
BOSSAC = bossac
flash: $(BUILD)/$(BOARD)-firmware.bin
@:$(call check_defined, SERIAL, example: SERIAL=/dev/ttyACM0)
$(BOSSAC) --port=$(SERIAL) -U -i --offset=0x2000 -e -w $^ -R
flash: flash-bossac