projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: profiling on STM32L
[fw/altos]
/
src
/
megametrum-v0.1
/
Makefile
diff --git
a/src/megametrum-v0.1/Makefile
b/src/megametrum-v0.1/Makefile
index d415b59b4493f07e963939773f0a66e3a1a8ba4b..b100fafcbb85fbb5e0f1e860f8779dbdd6654c8b 100644
(file)
--- a/
src/megametrum-v0.1/Makefile
+++ b/
src/megametrum-v0.1/Makefile
@@
-9,18
+9,22
@@
INC = \
ao.h \
ao_arch.h \
ao_arch_funcs.h \
ao.h \
ao_arch.h \
ao_arch_funcs.h \
+ ao_companion.h \
ao_data.h \
ao_sample.h \
ao_pins.h \
ao_data.h \
ao_sample.h \
ao_pins.h \
- altitude.h \
+ altitude
-pa
.h \
ao_kalman.h \
ao_product.h \
ao_ms5607.h \
ao_hmc5883.h \
ao_mpu6000.h \
ao_kalman.h \
ao_product.h \
ao_ms5607.h \
ao_hmc5883.h \
ao_mpu6000.h \
+ ao_mma655x.h \
ao_cc1120_CC1120.h \
ao_profile.h \
ao_cc1120_CC1120.h \
ao_profile.h \
+ ao_task.h \
ao_whiten.h \
ao_whiten.h \
+ ao_sample_profile.h \
stm32l.h
#
stm32l.h
#
@@
-30,6
+34,10
@@
INC = \
#PROFILE=ao_profile.c
#PROFILE_DEF=-DAO_PROFILE=1
#PROFILE=ao_profile.c
#PROFILE_DEF=-DAO_PROFILE=1
+SAMPLE_PROFILE=ao_sample_profile.c \
+ ao_sample_profile_timer.c
+SAMPLE_PROFILE_DEF=-DHAS_SAMPLE_PROFILE=1
+
# ao_hmc5883.c
ALTOS_SRC = \
# ao_hmc5883.c
ALTOS_SRC = \
@@
-54,7
+62,10
@@
ALTOS_SRC = \
ao_cc1120.c \
ao_fec_tx.c \
ao_fec_rx.c \
ao_cc1120.c \
ao_fec_tx.c \
ao_fec_rx.c \
+ ao_data.c \
ao_ms5607.c \
ao_ms5607.c \
+ ao_mma655x.c \
+ ao_hmc5883.c \
ao_adc_stm.c \
ao_beep_stm.c \
ao_storage.c \
ao_adc_stm.c \
ao_beep_stm.c \
ao_storage.c \
@@
-75,13
+86,14
@@
ALTOS_SRC = \
ao_packet.c \
ao_companion.c \
ao_pyro.c \
ao_packet.c \
ao_companion.c \
ao_pyro.c \
- $(PROFILE)
+ $(PROFILE) \
+ $(SAMPLE_PROFILE)
PRODUCT=MegaMetrum-v0.1
PRODUCT_DEF=-DMEGAMETRUM
IDPRODUCT=0x0023
PRODUCT=MegaMetrum-v0.1
PRODUCT_DEF=-DMEGAMETRUM
IDPRODUCT=0x0023
-CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) -Os -g
+CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF)
$(SAMPLE_PROFILE_DEF)
-Os -g
PROGNAME=megametrum-v0.1
PROG=$(PROGNAME)-$(VERSION).elf
PROGNAME=megametrum-v0.1
PROG=$(PROGNAME)-$(VERSION).elf
@@
-91,10
+103,10
@@
OBJ=$(SRC:.c=.o)
all: $(PROG)
all: $(PROG)
-$(PROG): Makefile $(OBJ)
+$(PROG): Makefile $(OBJ)
altos.ld
$(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(SAT_CLIB) -lgcc
$(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(SAT_CLIB) -lgcc
-../altitude
.h: make-altitude
+../altitude
-pa.h: make-altitude-pa
nickle $< > $@
$(OBJ): $(INC)
nickle $< > $@
$(OBJ): $(INC)