projects
/
goodfet
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
85a982854bfdef754e4d7bd2419a906163020913
[goodfet]
/
firmware
/
tests
/
blink
/
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
GCCINC=-T ../../ldscripts/161x.x
9
CC=msp430-gcc -g -mmcu=$(mcu) -DGCC $(GCCINC) -I ../../include
10
11
12
13
14
app=blink
15
16
all: $(app).hex
17
$(app).hex: $(app)
18
msp430-objcopy $(app) -O ihex $(app).hex
19
install: $(app)
20
$(BSL) -e -p $(app)
21
#$(BSL) -P $(app) -g 0x2500
22
$(BSL) -P $(app) -r
23
erase:
24
$(BSL) -e
25
clean:
26
rm $(app)