altos/telemetrum-v4.0: Almost building
[fw/altos] / src / telemetrum-v4.0 / Makefile
index e1b627b954e06c4ab78c3035e632238acb052449..4113bd420bbbd0a12eb0b9763ff0cfbea1bc61c1 100644 (file)
@@ -20,18 +20,15 @@ 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=32
+SAMD21_RAM=16
 
 #PROFILE=ao_profile.c
 #PROFILE_DEF=-DAO_PROFILE=1
@@ -56,27 +53,26 @@ 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_adc_samd21.c \
         ao_beep_stm.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 \
@@ -100,7 +96,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
@@ -110,7 +105,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)