X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=hw2%2Fmakefile;h=697aa23406ae10fcc250888b8a19e1809ca2f2ca;hb=b888e360fe2e74662feff76f6b5a0eef335d48c1;hp=118544885d22d14c64510eebc79b77a6c029653b;hpb=b140014d11ca7ce89bda2732f41a2f3f5c1a923e;p=~andy%2Fcsm213a-hw diff --git a/hw2/makefile b/hw2/makefile index 1185448..697aa23 100644 --- a/hw2/makefile +++ b/hw2/makefile @@ -1,10 +1,24 @@ -PROG = mbed -OBJS = main.o serial_dma.o +PROG = mbed +UART0 = /dev/ttyACM0 +UART1 = /dev/ttyACM1 +OBJS = main.o test.o serial_irq.o serial_dma.o timer_dma.o CPPFLAGS = LDFLAGS = -lm -default: info install +default: info run + +control: control.c messages.h + gcc -Wall -o $@ $< + +run: all control install.sh + @./install.sh $(PROG).bin + @./control $(UART0) 1 + @./control $(UART1) 2 sync + +terms: + term /dev/ttyACM0 & + term /dev/ttyACM1 & dist: zip mbed.zip makefile ../common.mk *.{c,cpp,h} */*.{cpp,.h}