easymotor: override .gitignore to store Makefiles
authorBdale Garbee <bdale@gag.com>
Mon, 27 Jul 2020 20:52:50 +0000 (14:52 -0600)
committerKeith Packard <keithp@keithp.com>
Thu, 22 Oct 2020 04:33:58 +0000 (21:33 -0700)
src/easymotor-v2/Makefile [new file with mode: 0644]
src/easymotor-v2/flash-loader/Makefile [new file with mode: 0644]

diff --git a/src/easymotor-v2/Makefile b/src/easymotor-v2/Makefile
new file mode 100644 (file)
index 0000000..b96e065
--- /dev/null
@@ -0,0 +1,81 @@
+#
+# AltOS build
+#
+#
+
+include ../stmf0/Makefile.defs
+
+INC = \
+       ao.h \
+       ao_arch.h \
+       ao_arch_funcs.h \
+       ao_pins.h \
+       ao_product.h \
+       ao_adxl375.h \
+       stm32f0.h
+
+#
+# Common AltOS sources
+#
+
+ALTOS_SRC = \
+       ao_interrupt.c \
+       ao_boot_chain.c \
+       ao_romconfig.c \
+       ao_product.c \
+       ao_mutex.c \
+       ao_panic.c \
+       ao_stdio.c \
+       ao_storage.c \
+       ao_report.c \
+       ao_ignite.c \
+       ao_flight.c \
+       ao_kalman.c \
+       ao_sample.c \
+       ao_data.c \
+       ao_convert_pa.c \
+       ao_convert_volt.c \
+       ao_task.c \
+       ao_log.c \
+       ao_log_motor.c \
+       ao_cmd.c \
+       ao_config.c \
+       ao_dma_stm.c \
+       ao_timer.c \
+       ao_exti_stm.c \
+       ao_spi_stm.c \
+       ao_adc_stm.c \
+       ao_usb_stm.c \
+       ao_m25.c \
+       ao_adxl375.c \
+       ao_beep_stm.c
+
+PRODUCT=EasyMotor-v2
+PRODUCT_DEF=-DEASYMOTOR_V_2
+IDPRODUCT=0x002c
+
+CFLAGS = $(PRODUCT_DEF) $(STMF0_CFLAGS)
+
+PROGNAME=easymotor-v2
+PROG=$(PROGNAME)-$(VERSION).elf
+HEX=$(PROGNAME)-$(VERSION).ihx
+
+SRC=$(ALTOS_SRC) ao_easymotor.c
+OBJ=$(SRC:.c=.o)
+
+all: $(PROG) $(HEX)
+
+$(PROG): Makefile $(OBJ)
+       $(call quiet,CC) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS)
+
+$(OBJ): $(INC)
+
+distclean:     clean
+
+clean:
+       rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx
+       rm -f ao_product.h
+
+install:
+
+uninstall:
diff --git a/src/easymotor-v2/flash-loader/Makefile b/src/easymotor-v2/flash-loader/Makefile
new file mode 100644 (file)
index 0000000..478c313
--- /dev/null
@@ -0,0 +1,8 @@
+#
+# AltOS flash loader build
+#
+#
+
+TOPDIR=../..
+HARDWARE=easymotor-v2
+include $(TOPDIR)/stmf0/Makefile-flash.defs