Blame view

RIOT/boards/msb-430-common/Makefile.include 1 KB
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
24
25
26
27
28
29
30
31
  ## the cpu to build for
  export CPU = msp430fxyz
  export CPU_MODEL = msp430f1612
  
  # set default port depending on operating system
  PORT_LINUX ?= /dev/ttyUSB0
  PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
  # setup serial terminal
  include $(RIOTBOARD)/Makefile.include.serial
  
  # setup flash tool
  export OFLAGS = -O ihex
  export PROGRAMMER ?= olimex
  export MSPDEBUGFLAGS += -j $(PROGRAMMER)
  ifeq ($(strip $(PROGRAMMER)),uif)
      export MSPDEBUGFLAGS += -d $(PORT)
  endif
  export FLASHER ?= mspdebug
  export FFLAGS = $(MSPDEBUGFLAGS) "prog $(HEXFILE)"
  
  # setup debugger
  export DEBUGSERVER = $(FLASHER)
  export DEBUGSERVER_FLAGS = $(MSPDEBUGFLAGS) gdb
  export DEBUGGER = $(PREFIX)gdb
  export DEBUGGER_FLAGS = --tui --ex="target remote localhost:2000" --ex "monitor reset halt" --ex load -ex "monitor reset halt"  $(ELFFILE)
  
  # export msb-430-common includes
  export INCLUDES += -I$(RIOTBOARD)/msb-430-common/include
  export INCLUDES += -I$(RIOTBOARD)/msb-430-common/drivers/include
  
  USEMODULE += msb-430-common-drivers