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:
parent
8632978ae1
commit
edd4f690a8
@ -1,3 +1,6 @@
|
|||||||
ifneq (,$(filter saul_default,$(USEMODULE)))
|
ifneq (,$(filter saul_default,$(USEMODULE)))
|
||||||
USEMODULE += saul_gpio
|
USEMODULE += saul_gpio
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# setup the samd21 arduino bootloader related dependencies
|
||||||
|
include $(RIOTBOARD)/common/samd21-arduino-bootloader/Makefile.dep
|
||||||
|
@ -11,3 +11,6 @@ FEATURES_PROVIDED += periph_spi
|
|||||||
FEATURES_PROVIDED += periph_timer
|
FEATURES_PROVIDED += periph_timer
|
||||||
FEATURES_PROVIDED += periph_uart
|
FEATURES_PROVIDED += periph_uart
|
||||||
FEATURES_PROVIDED += periph_usbdev
|
FEATURES_PROVIDED += periph_usbdev
|
||||||
|
|
||||||
|
# Put other features for this board (in alphabetical order)
|
||||||
|
FEATURES_PROVIDED += bootloader_arduino
|
||||||
|
@ -9,13 +9,7 @@ ifeq ($(PROGRAMMER),jlink)
|
|||||||
# in case J-Link is attached to SWD pins, use a plain CPU memory model
|
# in case J-Link is attached to SWD pins, use a plain CPU memory model
|
||||||
JLINK_DEVICE = atsamd21
|
JLINK_DEVICE = atsamd21
|
||||||
include $(RIOTMAKE)/tools/jlink.inc.mk
|
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
|
endif
|
||||||
|
|
||||||
# setup the boards dependencies
|
# Include all definitions for flashing with bossa over USB
|
||||||
include $(RIOTBOARD)/feather-m0/Makefile.dep
|
include $(RIOTBOARD)/common/samd21-arduino-bootloader/Makefile.include
|
||||||
|
Loading…
Reference in New Issue
Block a user