2023-01-19 08:10:53 +01:00
|
|
|
# include this module into the build
|
|
|
|
INCLUDES += -I$(RIOTBOARD)/common/gd32v/include
|
|
|
|
|
|
|
|
# configure the serial interface
|
|
|
|
PORT_LINUX ?= /dev/ttyUSB0
|
|
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
|
|
|
|
|
|
|
# configure the flasher
|
|
|
|
PROGRAMMER ?= openocd
|
|
|
|
OPENOCD_DEBUG_ADAPTER ?= ftdi
|
|
|
|
OPENOCD_FTDI_ADAPTER ?= openocd-usb
|
2024-01-17 09:16:26 +01:00
|
|
|
OPENOCD_TRANSPORT ?= jtag
|
2023-01-19 08:10:53 +01:00
|
|
|
OPENOCD_RESET_USE_CONNECT_ASSERT_SRST = 1
|
2023-01-27 11:41:03 +01:00
|
|
|
|
|
|
|
# DFU programmer specific variables
|
|
|
|
DFU_USB_ID ?= 28e9:0189
|
|
|
|
DFU_USE_DFUSE ?= 1
|