6 #For tos-bsl, use --invert-reset --invert-test
7 BSL?=goodfet.bsl --speed=38400
10 #One of these should be defined explicitly.
11 #Default removed because of confusion.
18 #N.B., gcc WILL NOT BITCH if this file doesn't exist.
19 #GCCINC=-T ldscripts/161x.x
20 GCCINC=-T ldscripts/$(mcu).x
23 CC=msp430-gcc -Wall -Os -g -mmcu=$(mcu) -D$(mcu) -DGCC $(GCCINC) -I include $(CCEXTRA)
25 #Define extra modules here.
26 #moreapps?=apps/i2c/i2c.o apps/glitch/glitch.o apps/jtag/sbw.o apps/smartcard/smartcard.o apps/jtag/ejtag.o apps/jtag/jtagxscale.o
27 moreapps?=apps/jtag/sbw.o
28 # should include apps/jtag/jtagarm7tdmi.o to build jtag for ARM7
29 # should include apps/pic/dspic33f.o to build support for PIC24H/dsPIC33F
32 apps= $(moreapps) apps/chipcon/chipcon.o apps/radios/nrf.o apps/monitor/monitor.o apps/spi/spi.o apps/jtag/jtag.o apps/jtag/jtag430.o apps/jtag/jtag430x2.o apps/avr/avr.o
34 #apps/chipcon/chipconasm.o removed
35 libs= lib/$(mcu).o lib/command.o apps/jtag/jtag430asm.o lib/dco_calib.o
51 ../client/goodfet.msp430 test
55 ls info.txt && $(BSL) -p info.txt || true #MSP430F2xx targets only, inelegant.
56 $(BSL) -e -p $(app).hex
58 $(BSL) -P $(app).hex -v $(app).hex
61 $(app): $(app).c $(libs) $(apps)
63 msp430-objcopy goodfet -O ihex goodfet.hex
65 msp430-objdump -D -m msp430 $(app).hex | m4s init
69 rm -f $(app) $(app).hex $(libs) $(apps)
73 rsync --exclude .svn -ave ssh doc/html/* travisutk,goodfet@web.sourceforge.net:htdocs/docs/