SPI application transfers correctly; need only !SScommand.
[goodfet] / firmware / apps / Makefile
1
2 PORT=/dev/ttyUSB0
3 BSL=tos-bsl --invert-reset --invert-test -c $(PORT)
4
5 #mcu=msp430x1611
6 mcu=msp430x1612
7
8 #ldscript is wonky
9 GCCINC=-T ../ldscripts/161x.x
10
11 CC=msp430-gcc -g -mmcu=$(mcu) -DGCC $(GCCINC) -I ../include
12
13 apps= monitor/monitor.c spi/spi.c
14 libs= ../lib/msp430f1612.c ../lib/command.c
15 app=goodfet
16
17 install: $(app)
18         $(BSL) -e -p $(app) 
19         $(BSL) -P $(app) -r
20 $(app): $(app).c $(libs) $(apps)
21 erase:
22         $(BSL) -e 
23 clean:
24         rm -f $(app)