summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-04-26 00:11:32 -0700
committerKeith Packard <keithp@keithp.com>2009-04-26 00:11:32 -0700
commit38a0b61b0a0b3c00f064c8d562950a17a6ddff4a (patch)
treeee099db3cfa30d5fe7a94523fe1e7a46f64d238d /Makefile
parentc65f1a1acd2ca00758833cec5d3f8056d303d3e2 (diff)
Add configuration support
Current config variables: Main deploy altitude above launch (in meters) Acceleration zero g calibration (manual or automatic) Radio channel (freq = 435.550MHz + channel * 100kHz) Callsign (max 8 characters) Supporting this involved shuffling code around so that the non-telemetrum builds could include only the stuff they needed.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8ef86be5..a7cca869 100644
--- a/Makefile
+++ b/Makefile
@@ -33,6 +33,7 @@ ALTOS_SRC = \
#
ALTOS_DRIVER_SRC = \
ao_beep.c \
+ ao_config.c \
ao_led.c \
ao_radio.c \
ao_stdio.c \
@@ -56,12 +57,20 @@ TELE_DRIVER_SRC = \
ao_gps.c \
ao_serial.c
+#
+# Drivers for partially-flled boards (TT, TD and TI)
+#
+TELE_FAKE_SRC = \
+ ao_adc_fake.c \
+ ao_ee_fake.c
+
#
# Drivers only on TeleMetrum
#
TM_DRIVER_SRC = \
ao_adc.c \
ao_ee.c \
+ ao_gps_report.c \
ao_ignite.c
#
@@ -97,6 +106,7 @@ TI_SRC = \
$(ALTOS_DRIVER_SRC) \
$(TELE_RECEIVER_SRC) \
$(TELE_COMMON_SRC) \
+ $(TELE_FAKE_SRC) \
$(TI_TASK_SRC)
TT_TASK_SRC = \
@@ -110,6 +120,7 @@ TT_SRC = \
$(TELE_RECEIVER_SRC) \
$(TELE_DRIVER_SRC) \
$(TELE_COMMON_SRC) \
+ $(TELE_FAKE_SRC) \
$(TT_TASK_SRC)
@@ -125,6 +136,7 @@ TD_SRC = \
$(ALTOS_DRIVER_SRC) \
$(TELE_RECEIVER_SRC) \
$(TELE_COMMON_SRC) \
+ $(TELE_FAKE_SRC) \
$(TD_TASK_SRC)
SRC = \
@@ -133,6 +145,7 @@ SRC = \
$(TELE_DRIVER_SRC) \
$(TELE_RECEIVER_SRC) \
$(TELE_COMMON_SRC) \
+ $(TELE_FAKE_SRC) \
$(TM_DRIVER_SRC) \
$(TM_TASK_SRC) \
$(TI_TASK_SRC) \