PROG = mbed
-OBJS = main.o test.o serial_dma.o timer_dma.o
+UART = /dev/ttyACM0
+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
+ gcc -Wall -o control control.c
+
+run: all control install.sh
+ @./install.sh $(PROG).bin
+ @./control $(UART)
+
+terms:
+ term /dev/ttyACM0 &
+ term /dev/ttyACM1 &
dist:
zip mbed.zip makefile ../common.mk *.{c,cpp,h} */*.{cpp,.h}