From f18793efb1fbfd17963b9146fae084f2b843d7a3 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Thu, 13 Apr 2017 19:36:49 -0600 Subject: initial cut at telegps-v2.0 firmware --- src/telegps-v2.0/Makefile | 92 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 src/telegps-v2.0/Makefile (limited to 'src/telegps-v2.0/Makefile') diff --git a/src/telegps-v2.0/Makefile b/src/telegps-v2.0/Makefile new file mode 100644 index 00000000..58cf26e8 --- /dev/null +++ b/src/telegps-v2.0/Makefile @@ -0,0 +1,92 @@ +# +# AltOS build +# +# + +include ../stmf0/Makefile.defs + +INC = \ + ao.h \ + ao_arch.h \ + ao_arch_funcs.h \ + ao_pins.h \ + ao_product.h \ + ao_tracker.h \ + ao_task.h \ + ao_whiten.h \ + ao_cc115l.h \ + ao_fec.h \ + stm32f0.h \ + Makefile + + +ALTOS_SRC = \ + ao_adc_stm.c \ + ao_led.c \ + ao_interrupt.c \ + ao_product.c \ + ao_romconfig.c \ + ao_cmd.c \ + ao_config.c \ + ao_task.c \ + ao_stdio.c \ + ao_panic.c \ + ao_timer.c \ + ao_mutex.c \ + ao_freq.c \ + ao_dma_stm.c \ + ao_spi_stm.c \ + ao_usb_stm.c \ + ao_exti_stm.c \ + ao_serial_stm.c \ + ao_gps_ublox.c \ + ao_gps_show.c \ + ao_cc1200.c \ + ao_fec_tx.c \ + ao_aprs.c \ + ao_tracker.c \ + ao_telemetry.c \ + ao_storage.c \ + ao_m25.c \ + ao_log.c \ + ao_log_gps.c \ + ao_distance.c \ + ao_sqrt.c \ + ao_data.c \ + ao_convert_volt.c \ + $(SAMPLE_PROFILE) + +PRODUCT=TeleGPS-v2.0 +PRODUCT_DEF=-DTELEGPS +IDPRODUCT=0x0025 + +CFLAGS = $(PRODUCT_DEF) $(STMF0_CFLAGS) $(PROFILE_DEF) -g -Os + +PROGNAME=telegps-v2.0 +PROG=$(PROGNAME)-$(VERSION).elf +HEX=$(PROGNAME)-$(VERSION).ihx + +SRC=$(ALTOS_SRC) ao_telegps.c +OBJ=$(SRC:.c=.o) + +all: $(PROG) $(HEX) + +LDFLAGS=-L../stmf0 -Wl,-Taltos.ld + +$(PROG): Makefile $(OBJ) altos.ld + $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS) + +$(OBJ): $(INC) + +ao_product.h: ao-make-product.5c ../Version + $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@ + +distclean: clean + +clean: + rm -f *.o ao_serial_stm.h $(PROGNAME)-*.elf $(PROGNAME)-*.ihx + rm -f ao_product.h + +install: + +uninstall: -- cgit v1.2.3 From f69d85e2b32370ab68e2725e739417cad6d7a590 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 13 Apr 2017 21:48:46 -0600 Subject: telegps-v2.0: Remove fec_tx code and ADC logging. This gets telegps-v2.0 to link. Signed-off-by: Keith Packard --- src/telegps-v2.0/Makefile | 9 +++------ src/telegps-v2.0/ao_pins.h | 2 ++ 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'src/telegps-v2.0/Makefile') diff --git a/src/telegps-v2.0/Makefile b/src/telegps-v2.0/Makefile index 58cf26e8..19d088d3 100644 --- a/src/telegps-v2.0/Makefile +++ b/src/telegps-v2.0/Makefile @@ -13,8 +13,7 @@ INC = \ ao_product.h \ ao_tracker.h \ ao_task.h \ - ao_whiten.h \ - ao_cc115l.h \ + ao_cc1200.h \ ao_fec.h \ stm32f0.h \ Makefile @@ -24,6 +23,7 @@ ALTOS_SRC = \ ao_adc_stm.c \ ao_led.c \ ao_interrupt.c \ + ao_boot_chain.c \ ao_product.c \ ao_romconfig.c \ ao_cmd.c \ @@ -42,7 +42,6 @@ ALTOS_SRC = \ ao_gps_ublox.c \ ao_gps_show.c \ ao_cc1200.c \ - ao_fec_tx.c \ ao_aprs.c \ ao_tracker.c \ ao_telemetry.c \ @@ -71,10 +70,8 @@ OBJ=$(SRC:.c=.o) all: $(PROG) $(HEX) -LDFLAGS=-L../stmf0 -Wl,-Taltos.ld - $(PROG): Makefile $(OBJ) altos.ld - $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS) + $(call quiet,CC) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS) $(OBJ): $(INC) diff --git a/src/telegps-v2.0/ao_pins.h b/src/telegps-v2.0/ao_pins.h index acba8c37..c51f0afb 100644 --- a/src/telegps-v2.0/ao_pins.h +++ b/src/telegps-v2.0/ao_pins.h @@ -26,6 +26,7 @@ #define LEDS_AVAILABLE (AO_LED_RED) +#define IS_FLASH_LOADER 0 #define HAS_BEEP 0 #define AO_HSE 32000000 @@ -120,6 +121,7 @@ struct ao_adc { #define HAS_LOG 1 #define FLIGHT_LOG_APPEND 1 #define HAS_TRACKER 1 +#define LOG_ADC 0 #define AO_CONFIG_DEFAULT_APRS_INTERVAL 0 #define AO_CONFIG_DEFAULT_RADIO_POWER 0xc0 -- cgit v1.2.3