diff --git a/boards/samr21-xpro/Makefile.include b/boards/samr21-xpro/Makefile.include index 9610f28fa8255ed2387375c7ae79159f607f6f50..53046528781cc2cc45bffc6c620763221ae13f0a 100644 --- a/boards/samr21-xpro/Makefile.include +++ b/boards/samr21-xpro/Makefile.include @@ -4,6 +4,7 @@ export CPU_MODEL = samr21g18a # set default port depending on operating system PORT_LINUX ?= /dev/ttyACM0 +PORT_DARWIN ?= $(shell ls -1 /dev/tty.usbmodem* | head -n 1) # setup the boards dependencies include $(RIOTBOARD)/$(BOARD)/Makefile.dep