Blame view

RIOT/boards/nrf6310/Makefile.include 765 Bytes
fb11e647   vrobic   reseau statique a...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  # define the used CPU
  export CPU = nrf51
  export CPU_MODEL = nrf51x22xxaa
  
  # set default port depending on operating system
  PORT_LINUX ?= /dev/ttyUSB0
  PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
  
  # define flash and debugging environment
  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