# set default port depending on operating system PORT_LINUX ?= /dev/ttyACM0 PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*))) # setup JLink for flashing PROGRAMMER ?= jlink JLINK_DEVICE = EFR32MG1PxxxF256 JLINK_PRE_FLASH = r