2013-08-19 18:58:45 +02:00
|
|
|
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
|
|
|
|
## the cpu to build for
|
|
|
|
export CPU = msp430x16x
|
|
|
|
export MCU = msp430f1611
|
|
|
|
|
|
|
|
# toolchain config
|
2014-01-03 19:00:41 +01:00
|
|
|
export PREFIX = msp430-
|
|
|
|
export CC = $(PREFIX)gcc
|
|
|
|
export AR = $(PREFIX)ar
|
2014-02-12 17:32:34 +01:00
|
|
|
export CFLAGS += -Wstrict-prototypes -gdwarf-2 -Os -Wall -mmcu=$(MCU)
|
2013-08-19 18:58:45 +02:00
|
|
|
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
|
2013-12-24 13:20:25 +01:00
|
|
|
export LINKFLAGS = -mmcu=$(MCU) -lgcc $(BINDIR)startup.o
|
2013-08-19 18:58:45 +02:00
|
|
|
export TERMPROG = $(RIOTBASE)/dist/tools/pyterm/pyterm.py
|
|
|
|
export FLASHER = goodfet.bsl
|
|
|
|
ifeq ($(strip $(PORT)),)
|
|
|
|
export PORT = /dev/ttyUSB0
|
|
|
|
endif
|
2014-01-03 18:45:07 +01:00
|
|
|
export HEXFILE = $(BINDIR)$(PROJECT).hex
|
2013-08-19 18:58:45 +02:00
|
|
|
export FFLAGS = --telosb -c $(PORT) -r -e -I -p $(HEXFILE)
|
|
|
|
|
2014-02-27 08:14:33 +01:00
|
|
|
export INCLUDES += -I$(RIOTCPU)/msp430-common/include -I$(RIOTBOARD)/$(BOARD)/include -I$(RIOTBASE)/drivers/cc2420/include -I$(RIOTBASE)/sys/net/include
|
2013-12-16 15:06:31 +01:00
|
|
|
export OFLAGS = -O ihex
|