aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Makefile
diff options
context:
space:
mode:
authorChristian Starkjohann <cs+github@obdev.at>2013-11-28 11:56:15 +0100
committerChristian Starkjohann <cs+github@obdev.at>2013-11-28 11:56:15 +0100
commit6f64e80f219273967d6ac7096f3ca3d7db5a0e79 (patch)
tree945d2caf5fad6cf9410c21b2034288b614e9b656 /tests/Makefile
parent6c6552a8bf9e3357a7ee96eb0870c36794dc871c (diff)
downloadv-usb-6f64e80f219273967d6ac7096f3ca3d7db5a0e79.tar.gz
v-usb-6f64e80f219273967d6ac7096f3ca3d7db5a0e79.tar.bz2
v-usb-6f64e80f219273967d6ac7096f3ca3d7db5a0e79.zip
Added long-pending 18 MHz module without CRC.
This module was contributed by Lukas Schrittwieser as a complement to the 18 MHz module including a CRC check. It is useful for boot loaders on boards which run on 18 MHz because they use the CRC module in the main code.
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/Makefile b/tests/Makefile
index a800c2a..43f8da1 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -13,7 +13,7 @@ DEFINES =
CFLAGS = $(DEFINES) -Iusbdrv -I. -DDEBUG_LEVEL=0
OBJECTS = usbdrv/usbdrv.o usbdrv/usbdrvasm.o usbdrv/oddebug.o main.o
-COMPILE = avr-gcc -Wall -Os -DF_CPU=$(F_CPU) $(CFLAGS) -mmcu=$(DEVICE)
+COMPILE = avr-gcc -Wall -Os -DF_CPU=$(F_CPU) $(CRCFLAG) $(CFLAGS) -mmcu=$(DEVICE)
SIZES_TMP = /tmp/sizetmp.txt
@@ -39,6 +39,8 @@ sizes sizes.txt:
$(MAKE) clean; $(MAKE) main.elf F_CPU=16500000
avr-size main.elf | tail -1 | awk '{print "Minimum_with_16_5_MHz", $$1+$$2, $$3+$$2}' >>$(SIZES_TMP)
$(MAKE) clean; $(MAKE) main.elf F_CPU=18000000
+ avr-size main.elf | tail -1 | awk '{print "Minimum_with_18_MHz", $$1+$$2, $$3+$$2}' >>$(SIZES_TMP)
+ $(MAKE) clean; $(MAKE) main.elf F_CPU=18000000 CRCFLAG="-DUSE_CRC=1"
avr-size main.elf | tail -1 | awk '{print "Minimum_with_18_MHz+CRC", $$1+$$2, $$3+$$2}' >>$(SIZES_TMP)
$(MAKE) clean; $(MAKE) main.elf F_CPU=20000000
avr-size main.elf | tail -1 | awk '{print "Minimum_with_20_MHz", $$1+$$2, $$3+$$2}' >>$(SIZES_TMP)