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

boards/{arduino,wemos}-zero: Dedpulicated code

This commit is contained in:
Marian Buschsieweke 2020-06-04 20:00:25 +02:00
parent 98824df68b
commit 17b890c16e
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F
3 changed files with 2 additions and 14 deletions

View File

@ -1,2 +1 @@
include $(RIOTBOARD)/common/arduino-zero/Makefile.include
include $(RIOTMAKE)/boards/sam0.inc.mk

View File

@ -1,3 +1,5 @@
INCLUDES += -I$(RIOTBOARD)/common/arduino-zero/include
OPENOCD_CONFIG ?= $(RIOTBOARD)/common/arduino-zero/dist/openocd.cfg
include $(RIOTMAKE)/boards/sam0.inc.mk

View File

@ -1,18 +1,5 @@
PORT_LINUX ?= /dev/ttyACM0
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
CFLAGS += -DBOOTLOADER_UF2
# setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk
# setup the flash tool used
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
endif
# Include all definitions for flashing with bossa other USB
include $(RIOTBOARD)/common/samd21-arduino-bootloader/Makefile.include
include $(RIOTBOARD)/common/arduino-zero/Makefile.include