]> git.gag.com Git - fw/altos/commitdiff
quantimotor: update copyright year, get it all compiling again
authorBdale Garbee <bdale@gag.com>
Thu, 27 Jun 2024 06:16:58 +0000 (00:16 -0600)
committerBdale Garbee <bdale@gag.com>
Thu, 27 Jun 2024 06:16:58 +0000 (00:16 -0600)
src/quantimotor-v1/Makefile [new file with mode: 0644]
src/quantimotor-v1/ao_pins.h
src/quantimotor-v1/ao_quantimotor.c
src/quantimotor-v1/flash-loader/ao_pins.h

diff --git a/src/quantimotor-v1/Makefile b/src/quantimotor-v1/Makefile
new file mode 100644 (file)
index 0000000..c5e56dc
--- /dev/null
@@ -0,0 +1,68 @@
+#
+# AltOS build
+#
+#
+
+include ../lpc/Makefile.defs
+
+INC = \
+       ao.h \
+       ao_arch.h \
+       ao_arch_funcs.h \
+       ao_pins.h \
+       ao_product.h \
+       lpc.h
+
+#
+# Common AltOS sources
+#
+
+ALTOS_SRC = \
+       ao_interrupt.c \
+       ao_boot_chain.c \
+       ao_product.c \
+       ao_mutex.c \
+       ao_panic.c \
+       ao_stdio.c \
+       ao_storage.c \
+       ao_data.c \
+       ao_convert_volt.c \
+       ao_task.c \
+       ao_cmd.c \
+       ao_config.c \
+       ao_timer_lpc.c \
+       ao_exti_lpc.c \
+       ao_romconfig.c \
+       ao_adc_lpc.c \
+       ao_serial_lpc.c \
+       ao_usb_lpc.c 
+
+PRODUCT=QuantiMotor-v1
+PRODUCT_DEF=-DQUANTIMOTOR_V_1
+IDPRODUCT=0x002d
+
+CFLAGS = $(PRODUCT_DEF) $(LPC_CFLAGS)
+
+PROGNAME=quantimotor-v3
+PROG=$(PROGNAME)-$(VERSION).elf
+HEX=$(PROGNAME)-$(VERSION).ihx
+
+SRC=$(ALTOS_SRC) ao_quantimotor.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 $(PROGNAME)-*.map
+       rm -f ao_product.h ao_serial_lpc.h
+
+install:
+
+uninstall:
index 00dfb19b3b432656d3de2b34083f4a45b7bf4a0b..963908e12d13843170a2d0e7c01ab12a86185a6f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2022 Bdale Garbee <bdale@gag.com
+ * Copyright © 2024 Bdale Garbee <bdale@gag.com
  * GPLv3
  */
 
@@ -33,7 +33,7 @@
 
 /* USART */
 
-#define HAS_SERIAL              1
+#define HAS_SERIAL_0            1
 #define USE_SERIAL_0_STDIN      0
 #define SERIAL_0_18_19          1
 
index 7af19cd1167e7e51f2ba1d9376ed4fadf94999ce..5ee30d743155894fb763a80324f74447d10c5584 100644 (file)
@@ -1,10 +1,11 @@
 /*
- * Copyright © 2022 Bdale Garbee <bdale@gag.com>
+ * Copyright © 2024 Bdale Garbee <bdale@gag.com>
  * GPLv3
  */
 
 #include <ao.h>
 #include <ao_exti.h>
+#include <ao_serial.h>
 
 int
 main(void)
index 3a69cd6ca8b4103c59579553e7e5c524633faac5..092b7201065dfcc9468f0c9ed8b9aa91fe58f4b1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2022 Bdale Garbee <bdale@gag.com>
+ * Copyright © 2024 Bdale Garbee <bdale@gag.com>
  * GPLv3
  */