# define the cpu used by the HiFive1 board export CPU = fe310 export CPU_MODEL = fe310 # Uses UART0 for stdio input/output (comment out to disable) USEMODULE += stdio_uart # set default port depending on operating system PORT_LINUX ?= /dev/ttyUSB1 PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*))) # setup serial terminal include $(RIOTMAKE)/tools/serial.inc.mk # this board uses openocd include $(RIOTMAKE)/tools/openocd.inc.mk # use our own openocd script to flash since HiFive1 has reset problems. export FLASHER = $(RIOTBASE)/boards/hifive1/dist/flasher.sh