diff options
| author | Keith Packard <keithp@keithp.com> | 2012-03-23 00:43:47 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2012-03-28 21:37:04 -0700 |
| commit | 0bda768c2be5b81bec13f21d4d3bb6a11a8e88fa (patch) | |
| tree | 9d5f69bb67065a237c06a6cda217d8d87832a8c0 /src/megametrum-v0.1/Makefile | |
| parent | c27e211796a64b6bbacfe6a1516e9872fdb0853e (diff) | |
Add preliminary MegaMetrum v0.1 support
This turns on an LED, enables the internal R/C clock, hooks USART3 to
the GPS chip and USART1 to the console.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/megametrum-v0.1/Makefile')
| -rw-r--r-- | src/megametrum-v0.1/Makefile | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/src/megametrum-v0.1/Makefile b/src/megametrum-v0.1/Makefile new file mode 100644 index 00000000..4f5e9244 --- /dev/null +++ b/src/megametrum-v0.1/Makefile @@ -0,0 +1,70 @@ +# +# AltOS build +# +# + +include ../stm/Makefile.defs + +INC = \ + ao.h \ + ao_arch.h \ + ao_pins.h \ + altitude.h \ + ao_kalman.h \ + ao_product.h + +# +# Common AltOS sources +# +ALTOS_SRC = \ + ao_interrupt.c \ + ao_product.c \ + ao_romconfig.c \ + ao_cmd.c \ + ao_task.c \ + ao_led.c \ + ao_stdio.c \ + ao_panic.c \ + ao_timer.c \ + ao_mutex.c \ + ao_serial_stm.c \ + ao_gps_skytraq.c + +PRODUCT=MegaMetrum-v0.1 +PRODUCT_DEF=-DMEGAMETRUM +IDPRODUCT=0x000a + +CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) + +PROG=megametrum-v0.1 + +SRC=$(ALTOS_SRC) ao_megametrum.c +OBJ=$(SRC:.c=.o) + +all: $(PROG) + +LDFLAGS=-L../stm -Wl,-Taltos.ld + +$(PROG): Makefile $(OBJ) + $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(SAT_CLIB) -lgcc + +../altitude.h: make-altitude + nickle $< > $@ + +$(OBJ): $(INC) + +ao_product.h: ao-make-product.5c ../Version + $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@ + +ao_product.rel: ao_product.c ao_product.h + $(call quiet,CC) -c $(CFLAGS) -D PRODUCT_DEFS='\"ao_product.h\"' -o$@ $< + +distclean: clean + +clean: + rm -f $(OBJ) + rm -f ao_product.h + +install: + +uninstall: |
