X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Ftelemetrum-v4.0%2FMakefile;h=5191640754ef55da8be8a4430fb74d16b84a2bf8;hb=470be148d9a9dcd45609942d17fcf7c1555375f3;hp=5733a9d0482fea954954cf4b861971f039974b1e;hpb=05278307f5e9fd5f8b1a53078e6f3b125785b019;p=fw%2Faltos diff --git a/src/telemetrum-v4.0/Makefile b/src/telemetrum-v4.0/Makefile index 5733a9d0..51916407 100644 --- a/src/telemetrum-v4.0/Makefile +++ b/src/telemetrum-v4.0/Makefile @@ -20,14 +20,16 @@ INC = \ ao_ms5607.h \ ao_adxl375.h \ ao_cc1200_CC1200.h \ - ao_profile.h \ ao_task.h \ ao_whiten.h \ - ao_sample_profile.h \ - ao_mpu.h \ samd21.h \ Makefile +# SAMD21G17D + +SAMD21_ROM=128 +SAMD21_RAM=16 + #PROFILE=ao_profile.c #PROFILE_DEF=-DAO_PROFILE=1 @@ -51,27 +53,24 @@ ALTOS_SRC = \ ao_panic.c \ ao_timer.c \ ao_mutex.c \ - ao_serial_stm.c \ + ao_serial_samd21.c \ ao_gps_ublox.c \ ao_gps_show.c \ ao_gps_report_metrum.c \ ao_ignite.c \ ao_freq.c \ - ao_dma_stm.c \ - ao_spi_stm.c \ + ao_dma_samd21.c \ + ao_spi_samd21.c \ ao_cc1200.c \ - ao_fec_tx.c \ - ao_fec_rx.c \ ao_data.c \ ao_ms5607.c \ ao_adxl375.c \ - ao_adc_stm.c \ - ao_beep_stm.c \ + ao_adc_samd21.c \ + ao_beep_samd21.c \ ao_storage.c \ ao_m25.c \ ao_usb_samd21.c \ - ao_exti_stm.c \ - ao_eeprom_stm.c \ + ao_exti_samd21.c \ ao_report.c \ ao_convert_pa.c \ ao_convert_volt.c \ @@ -95,7 +94,6 @@ IDPRODUCT=0x000b CFLAGS = $(PRODUCT_DEF) $(SAMD21_CFLAGS) $(PROFILE_DEF) $(SAMPLE_PROFILE_DEF) $(STACK_GUARD_DEF) - PROGNAME=telemetrum-v4.0 PROG=$(PROGNAME)-$(VERSION).elf HEX=$(PROGNAME)-$(VERSION).ihx @@ -105,7 +103,7 @@ OBJ=$(SRC:.c=.o) all: $(PROG) $(HEX) -$(PROG): Makefile $(OBJ) altos.ld +$(PROG): Makefile $(OBJ) $(call quiet,CC) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS) $(OBJ): $(INC)