2014-02-27 12:48:30 +01:00
|
|
|
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
|
|
|
|
## the cpu to build for
|
2014-12-01 17:32:29 +01:00
|
|
|
export CPU = msp430fxyz
|
2014-02-27 12:48:30 +01:00
|
|
|
export MCU = msp430f2617
|
|
|
|
|
|
|
|
# toolchain config
|
|
|
|
export PREFIX = msp430-
|
|
|
|
export CC = $(PREFIX)gcc
|
|
|
|
export AR = $(PREFIX)ar
|
|
|
|
export CFLAGS += -std=c99 -Wstrict-prototypes -gdwarf-2 -Os -Wall -mmcu=$(MCU)
|
|
|
|
export ASFLAGS += -mmcu=$(MCU) --defsym $(MCU)=1 --gdwarf-2
|
|
|
|
export AS = $(PREFIX)as
|
|
|
|
export LINK = $(PREFIX)gcc
|
|
|
|
export SIZE = $(PREFIX)size
|
|
|
|
export OBJCOPY = $(PREFIX)objcopy
|
2014-10-17 22:39:45 +02:00
|
|
|
export LINKFLAGS += -mmcu=$(MCU) -lgcc $(BINDIR)msp430_common/startup.o
|
2014-07-31 19:42:06 +02:00
|
|
|
export TERMPROG = $(RIOTBASE)/dist/tools/pyterm/pyterm
|
2014-08-14 12:34:00 +02:00
|
|
|
export FLASHER = $(RIOTBASE)/dist/tools/goodfet/goodfet.bsl
|
2014-02-27 12:48:30 +01:00
|
|
|
export FFLAGS = --z1 -I -c $(PORT) -r -e -p $(HEXFILE)
|
|
|
|
export OFLAGS = -O ihex
|
2015-09-15 13:43:50 +02:00
|
|
|
|
|
|
|
export PORT_LINUX ?= /dev/ttyUSB0
|
|
|
|
export PORT_DARWIN ?= /dev/tty.SLAB_USBtoUART
|
|
|
|
include $(RIOTBOARD)/Makefile.include.serial
|
2014-02-27 12:48:30 +01:00
|
|
|
|
2015-08-05 19:29:41 +02:00
|
|
|
export INCLUDES += -I$(RIOTCPU)/$(CPU)/include/ -I$(RIOTBOARD)/$(BOARD)/include/
|
2015-08-05 15:56:24 +02:00
|
|
|
export INCLUDES += -I $(RIOTCPU)/msp430-common/include
|
2014-02-27 12:48:30 +01:00
|
|
|
|
|
|
|
export UNDEF += $(BINDIR)msp430_common/startup.o
|