mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #15545 from aabadie/pr/boards/qn908x_clean_makefile_include
boards/common/qn908x: cleanup Makefile.include
This commit is contained in:
commit
d1f1c6baa3
@ -1,3 +1,8 @@
|
||||
# This board uses OpenOCD. Note that support for QN908x in OpenOCD at the time
|
||||
# of writing has not been merged in the tree and is only available at
|
||||
# http://openocd.zylin.com/#/c/5584/ .
|
||||
PROGRAMMER ?= openocd
|
||||
|
||||
# Using dap or jlink depends on which firmware the OpenSDA debugger is running
|
||||
#DEBUG_ADAPTER ?= dap
|
||||
DEBUG_ADAPTER ?= jlink
|
||||
@ -9,18 +14,3 @@ OPENOCD_CONFIG ?= $(RIOTBOARD)/common/qn908x/dist/openocd.cfg
|
||||
# verify the image, which needs to have the WDT disabled but it is normally
|
||||
# enabled after a 'reset halt' command.
|
||||
OPENOCD_PRE_FLASH_CMDS += "-c qn908x disable_wdog"
|
||||
|
||||
# Set default port depending on operating system
|
||||
PORT_LINUX ?= /dev/ttyACM0
|
||||
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
||||
|
||||
# OpenOCD is able to handle .elf files and is the preferred way.
|
||||
FLASHFILE ?= $(ELFFILE)
|
||||
|
||||
# Setup serial terminal
|
||||
include $(RIOTMAKE)/tools/serial.inc.mk
|
||||
|
||||
# This board uses OpenOCD. Note that support for QN908x in OpenOCD at the time
|
||||
# of writing has not been merged in the tree and is only available at
|
||||
# http://openocd.zylin.com/#/c/5584/ .
|
||||
include $(RIOTMAKE)/tools/openocd.inc.mk
|
||||
|
Loading…
Reference in New Issue
Block a user