Removed deprecated MSP430 flash test.
[goodfet] / firmware / tests / blink / Makefile
1
2 PORT=/dev/ttyUSB0
3 BSL=tos-bsl --invert-reset --invert-test -c $(PORT)
4
5 #Default to 2001 with least resources.
6
7 #mcu=msp430x1611
8 #mcu=msp430x2618
9 mcu?=msp430x2001
10
11 #GCCINC=-T ../../ldscripts/161x.x
12 CC=msp430-gcc -g -mmcu=$(mcu) -DGCC $(GCCINC) -I ../../include
13
14
15
16
17 app=blink
18
19 all: $(app).hex
20 $(app).hex: $(app)
21         msp430-objcopy $(app) -O ihex $(app).hex
22 install: $(app)
23         $(BSL) -e -p $(app) 
24         #$(BSL) -P $(app) -g 0x2500
25         $(BSL) -P $(app) -r
26 erase:
27         $(BSL) -e 
28 clean:
29         rm $(app)