summaryrefslogtreecommitdiff
path: root/src/mpusb-v3.0/Makefile
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-01-20 00:00:07 -0800
committerKeith Packard <keithp@keithp.com>2018-05-07 09:24:31 -0700
commit5ddd4e10bd8ddb4a00a0ccd8982db3311ec5a9e7 (patch)
tree976ea0fec4d4308db76c046a5598c3225dd30df4 /src/mpusb-v3.0/Makefile
parent257350e1a3e4ba2048e80d30a4a0454eb65d4a26 (diff)
altos: Add µPusb v3.0 project
This replaces the ft230 with a stm32f04, saving a bit of BOM and giving us control over the firmware. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/mpusb-v3.0/Makefile')
-rw-r--r--src/mpusb-v3.0/Makefile67
1 files changed, 67 insertions, 0 deletions
diff --git a/src/mpusb-v3.0/Makefile b/src/mpusb-v3.0/Makefile
new file mode 100644
index 00000000..5d42b53b
--- /dev/null
+++ b/src/mpusb-v3.0/Makefile
@@ -0,0 +1,67 @@
+#
+# AltOS build
+#
+#
+
+include ../stmf0/Makefile.defs
+
+INC = \
+ ao.h \
+ ao_arch.h \
+ ao_arch_funcs.h \
+ ao_boot.h \
+ ao_pins.h \
+ ao_product.h \
+ ao_task.h \
+ ao_whiten.h \
+ stm32f0.h \
+ Makefile
+
+ALTOS_SRC = \
+ ao_boot_chain.c \
+ ao_interrupt.c \
+ ao_product.c \
+ ao_romconfig.c \
+ ao_cmd.c \
+ ao_dma_stm.c \
+ ao_task.c \
+ ao_stdio.c \
+ ao_panic.c \
+ ao_timer.c \
+ ao_mutex.c \
+ ao_usb_stm.c \
+ ao_power.c \
+ ao_serial_stm.c
+
+PRODUCT=MicroPeakUSB-v3.0
+PRODUCT_DEF=-DMPUSB
+IDPRODUCT=0x002b
+
+CFLAGS = $(PRODUCT_DEF) $(STMF0_CFLAGS) -Os -g
+
+PROGNAME=mpusb-v3.0
+PROG=$(PROGNAME)-$(VERSION).elf
+HEX=$(PROGNAME)-$(VERSION).ihx
+
+SRC=$(ALTOS_SRC) ao_mpusb.c
+OBJ=$(SRC:.c=.o)
+
+all: $(PROG) $(HEX)
+
+$(PROG): Makefile $(OBJ) altos.ld
+ $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
+
+ao_product.h: ao-make-product.5c ../Version
+ $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
+
+$(OBJ): $(INC)
+
+distclean: clean
+
+clean:
+ rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx
+ rm -f ao_product.h
+
+install:
+
+uninstall: