mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
49dcb692d1
- changed naming of cortexm_common in makefiles - included some minor cleanups
26 lines
834 B
Makefile
26 lines
834 B
Makefile
# define the cpu used by the nRF51822 board pca10000
|
|
export CPU = nrf51822
|
|
export CPU_MODEL = nrf51822qfaa
|
|
|
|
# define the default port depending on the host OS
|
|
PORT_LINUX ?= /dev/ttyACM0
|
|
PORT_DARWIN ?= $(shell ls -1 /dev/tty.SLAB_USBtoUART* | head -n 1)
|
|
|
|
export FLASHER = $(RIOTBOARD)/$(BOARD)/dist/flash.sh
|
|
export DEBUGGER = $(RIOTBOARD)/$(BOARD)/dist/debug.sh
|
|
export DEBUGSERVER = JLinkGDBServer -device nrf51822 -if SWD
|
|
export RESET = $(RIOTBOARD)/$(BOARD)/dist/reset.sh
|
|
|
|
export OFLAGS = -O binary
|
|
export HEXFILE = $(ELFFILE:.elf=.bin)
|
|
export TERMFLAGS += -p "$(PORT)"
|
|
export FFLAGS = $(BINDIR) $(HEXFILE)
|
|
export DEBUGGER_FLAGS = $(BINDIR) $(ELFFILE)
|
|
export RESET_FLAGS = $(BINDIR)
|
|
|
|
# setup serial terminal
|
|
include $(RIOTBOARD)/Makefile.include.serial
|
|
|
|
# include cortex defaults
|
|
include $(RIOTBOARD)/Makefile.include.cortexm_common
|