Remove bit-banging debug support from TM board builds
authorKeith Packard <keithp@keithp.com>
Thu, 3 Sep 2009 05:01:52 +0000 (22:01 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 3 Sep 2009 05:01:52 +0000 (22:01 -0700)
Our current TM boards don't have the wires to do bit-banging to
another cc1111 board, so it doesn't make sense to fill up their flash
with useless code (and the 'help' text with useless commands). Leave
this to the TI board until we have boards that can serve as debug dongles.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/Makefile
src/ao_log.c
src/ao_teledongle.c
src/ao_telemetrum.c
src/ao_teleterra.c

index 96049c65f11af939d736518695badd6554b4ec90..828c48bdc5fc6775cf30ab81317bb623a6ccbd63 100644 (file)
@@ -24,7 +24,6 @@ INC = \
 #
 ALTOS_SRC = \
        ao_cmd.c \
-       ao_dbg.c \
        ao_dma.c \
        ao_mutex.c \
        ao_panic.c \
@@ -70,6 +69,12 @@ TELE_FAKE_SRC = \
        ao_adc_fake.c \
        ao_ee_fake.c
 
+#
+# Debug dongle driver (only on TI)
+#
+DBG_DONGLE_SRC = \
+       ao_dbg.c
+
 #
 # Drivers only on TeleMetrum
 #
@@ -115,7 +120,8 @@ TI_SRC = \
        $(TELE_RECEIVER_SRC) \
        $(TELE_COMMON_SRC) \
        $(TELE_FAKE_SRC) \
-       $(TI_MAIN_SRC)
+       $(TI_MAIN_SRC) \
+       $(DBG_DONGLE_SRC)
 
 TT_MAIN_SRC = \
        ao_teleterra.c
index 19bfdfb89a13fe62234ac099e7dd05b910f6bc27..7945ace4e1854c536b216a1d8d5e17c96d137ae7 100644 (file)
@@ -109,6 +109,9 @@ ao_log_dump_next(void)
 __xdata uint8_t        ao_log_adc_pos;
 __xdata enum flight_state ao_log_state;
 
+/* a hack to make sure that ao_log_records fill the eeprom block in even units */
+typedef uint8_t check_log_size[1-(256 % sizeof(struct ao_log_record))] ;
+
 void
 ao_log(void)
 {
index 4ebc53a54161d5f1772426dd3257a80c04c9c163..d7b4b75a5cc3141c94ece3f331f898195c6ba71d 100644 (file)
@@ -33,7 +33,6 @@ main(void)
        ao_monitor_init(AO_LED_GREEN, TRUE);
        ao_rssi_init(AO_LED_RED);
        ao_radio_init();
-       ao_dbg_init();
        ao_config_init();
        ao_start_scheduler();
 }
index 5e951b493f098c1a42b787dde12a0635e22f2439..1dbacf8991b3937bca2366b7c0b64f3512d59375 100644 (file)
@@ -41,7 +41,6 @@ main(void)
        ao_telemetry_init();
        ao_radio_init();
        ao_igniter_init();
-       ao_dbg_init();
        ao_config_init();
        ao_start_scheduler();
 }
index 6464ccc07f01ddcca3737a15412dc5037450ff89..deb63597f91845dec91a69a2158c0f80df9b2ba8 100644 (file)
@@ -34,7 +34,6 @@ main(void)
        ao_gps_init();
        ao_monitor_init(AO_LED_GREEN, TRUE);
        ao_radio_init();
-       ao_dbg_init();
        ao_config_init();
        ao_start_scheduler();
 }