projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Faster SPI Flash dumping, but it's a bit ugly.
[goodfet]
/
firmware
/
Makefile
diff --git
a/firmware/Makefile
b/firmware/Makefile
index
75ada15
..
4e4cbc4
100644
(file)
--- a/
firmware/Makefile
+++ b/
firmware/Makefile
@@
-1,9
+1,12
@@
-PORT=/dev/ttyUSB0
-BSL=../../contrib/tos-bsl --invert-reset --invert-test -c $(PORT) --speed=38400
+#include `uname`.mak
+GOODFET?=/dev/ttyUSB0
+BSL=../../contrib/tos-bsl --invert-reset --invert-test -c $(GOODFET) --speed=38400
+
+#mcu=msp430x2274
#mcu=msp430x2618
#mcu=msp430x2618
-mcu=msp430x1612
+mcu
?
=msp430x1612
#N.B., gcc WILL NOT BITCH if this file doesn't exist.
#N.B., gcc WILL NOT BITCH if this file doesn't exist.
@@
-30,7
+33,7
@@
install: $(app).hex
verify:
$(BSL) -P $(app).hex -v $(app).hex
dumpinfo:
verify:
$(BSL) -P $(app).hex -v $(app).hex
dumpinfo:
- $(BSL) --dumpinfo
-c /dev/ttyUSB0
+ $(BSL) --dumpinfo
$(app): $(app).c $(libs) $(apps)
$(app).hex: $(app)
msp430-objcopy goodfet -O ihex goodfet.hex
$(app): $(app).c $(libs) $(apps)
$(app).hex: $(app)
msp430-objcopy goodfet -O ihex goodfet.hex