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

boards/feather-m0: use bootloader_arduino feature

This provides automatic reflash/reset and stdio over USB for this board
This commit is contained in:
Alexandre Abadie 2019-09-30 17:17:24 +02:00
parent 8632978ae1
commit edd4f690a8
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
3 changed files with 8 additions and 8 deletions

View File

@ -1,3 +1,6 @@
ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += saul_gpio
endif
# setup the samd21 arduino bootloader related dependencies
include $(RIOTBOARD)/common/samd21-arduino-bootloader/Makefile.dep

View File

@ -11,3 +11,6 @@ FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_timer
FEATURES_PROVIDED += periph_uart
FEATURES_PROVIDED += periph_usbdev
# Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += bootloader_arduino

View File

@ -9,13 +9,7 @@ ifeq ($(PROGRAMMER),jlink)
# in case J-Link is attached to SWD pins, use a plain CPU memory model
JLINK_DEVICE = atsamd21
include $(RIOTMAKE)/tools/jlink.inc.mk
else
# by default, we use BOSSA to flash this board to take into account the
# pre-flashed Arduino bootloader. ROM_OFFSET skips the space taken by
# such bootloader.
ROM_OFFSET ?= 0x2000
include $(RIOTMAKE)/tools/bossa.inc.mk
endif
# setup the boards dependencies
include $(RIOTBOARD)/feather-m0/Makefile.dep
# Include all definitions for flashing with bossa over USB
include $(RIOTBOARD)/common/samd21-arduino-bootloader/Makefile.include