From 022f83ca6fd589005d8eb3e25e633950fef69fa7 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 17 Apr 2009 23:38:14 -0700 Subject: Add gps, debug dongle support and pressure alt tables GPS also pulled in serial support. The altitude tables take raw 11-bit pressure sample numbers and convert them to standard pressure altitude values. Signed-off-by: Keith Packard --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f8c9c73a..b35b1446 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ NO_OPT=--nogcse --noinvariant --noinduction --nojtbound --noloopreverse \ --nolabelopt --nooverlay --peep-asm DEBUG=--debug -CFLAGS=--model-small $(DEBUG) --less-pedantic +CFLAGS=--model-small $(DEBUG) --less-pedantic --opt-code-speed LDFLAGS=--out-fmt-ihx LDFLAGS_FLASH=$(LDFLAGS) --code-loc 0x0000 --code-size 0x8000 \ @@ -12,20 +12,25 @@ LDFLAGS_FLASH=$(LDFLAGS) --code-loc 0x0000 --code-size 0x8000 \ INC = \ ao.h \ - cc1111.h + cc1111.h \ + altitude.h SRC = \ ao_adc.c \ ao_beep.c \ ao_cmd.c \ + ao_convert.c \ + ao_dbg.c \ ao_dma.c \ ao_ee.c \ ao_flight.c \ + ao_gps.c \ ao_led.c \ ao_log.c \ ao_mutex.c \ ao_panic.c \ ao_report.c \ + ao_serial.c \ ao_task.c \ ao_timer.c \ ao_usb.c \ @@ -56,6 +61,9 @@ $(PROG).ihx: $(REL) Makefile $(CC) $(LDFLAGS_FLASH) $(CFLAGS) -o $(PROG).ihx $(REL) sh check-stack ao.h $(PROG).mem +altitude.h: make-altitude + nickle make-altitude > altitude.h + clean: rm -f $(ADB) $(ASM) $(LNK) $(LST) $(REL) $(RST) $(SYM) rm -f $(PROGS) $(PCDB) $(PLNK) $(PMAP) $(PMEM) $(PAOM) -- cgit v1.2.3