2017-09-21 19:31:09 +00:00
|
|
|
|
2017-09-23 15:20:55 +00:00
|
|
|
#Standard Debian gcc-msp430 and msp430mcu packages.
|
|
|
|
CC = msp430-gcc -mmcu=cc430f6137
|
2017-09-21 19:31:09 +00:00
|
|
|
|
2017-09-23 15:20:55 +00:00
|
|
|
modules=main.o lcd.o
|
|
|
|
|
2017-09-23 16:21:58 +00:00
|
|
|
all: goodwatch.hex
|
2017-09-23 15:20:55 +00:00
|
|
|
|
|
|
|
goodwatch: $(modules)
|
|
|
|
$(CC) -o goodwatch $(modules)
|
|
|
|
goodwatch.hex: goodwatch
|
|
|
|
msp430-objcopy -O ihex main main.hex
|
2017-09-21 19:31:09 +00:00
|
|
|
|
|
|
|
clean:
|
2017-09-23 15:20:55 +00:00
|
|
|
rm -f *~ *.hex *.elf *.o goodwatch
|
2017-09-21 19:31:09 +00:00
|
|
|
|
|
|
|
erase:
|
|
|
|
python -m msp430.bsl5.uart -p /dev/ttyUSB0 --invert-test --invert-reset -v -e
|
|
|
|
|