aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian Starkjohann <cs+github@obdev.at>2009-03-16 18:51:56 +0000
committerChristian Starkjohann <cs+github@obdev.at>2009-03-16 18:51:56 +0000
commit42a85e6e30fc32916e75bf609ebb72671efa0cb8 (patch)
tree9d60abe0f457bf30f988c311408de4c149834409 /tests
parent58e1d9d79499d979dde6501ced86499fc6f48fd9 (diff)
downloadv-usb-42a85e6e30fc32916e75bf609ebb72671efa0cb8.tar.gz
v-usb-42a85e6e30fc32916e75bf609ebb72671efa0cb8.tar.bz2
v-usb-42a85e6e30fc32916e75bf609ebb72671efa0cb8.zip
- extended tests to 18 MHz module with CRC
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile4
-rw-r--r--tests/usbconfig.h7
2 files changed, 10 insertions, 1 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 96f473e..4599702 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -39,6 +39,8 @@ sizes sizes.txt:
avr-size main.elf | tail -1 | awk '{print "Minimum_with_15_MHz", $$1+$$2, $$3+$$2}' >>$(SIZES_TMP)
$(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+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)
$(MAKE) clean; $(MAKE) main.elf DEFINES=-DUSB_CFG_IMPLEMENT_FN_WRITE=1
@@ -66,7 +68,7 @@ sizes sizes.txt:
rm $(SIZES_TMP)
test:
- for freq in 12000000 12800000 15000000 16000000 16500000 20000000; do \
+ for freq in 12000000 12800000 15000000 16000000 16500000 18000000 20000000; do \
for opt in USB_COUNT_SOF USB_CFG_HAVE_INTRIN_ENDPOINT USB_CFG_HAVE_INTRIN_ENDPOINT3 USB_CFG_HAVE_MEASURE_FRAME_LENGTH USB_CFG_LONG_TRANSFERS; do \
$(MAKE) clean; $(MAKE) main.elf F_CPU=$$freq "DEFINES=-D$$opt=1" || exit 1; \
$(MAKE) clean; $(MAKE) main.elf F_CPU=$$freq "DEFINES=-D$$opt=1 -DDUSB_CFG_IMPLEMENT_FN_WRITEOUT=1" || exit 1; \
diff --git a/tests/usbconfig.h b/tests/usbconfig.h
index f97cf63..b585c2f 100644
--- a/tests/usbconfig.h
+++ b/tests/usbconfig.h
@@ -47,6 +47,13 @@ section at the end of this file).
* of 2000 ppm and thus a crystal!
* Default if not specified: 12 MHz
*/
+#define USB_CFG_CHECK_CRC (USB_CFG_CLOCK_KHZ == 18000)
+/* Define this to 1 if you want that the driver checks data integrity of data
+ * packets (CRC checks). CRC checks cost quite a bit of code size and are
+ * currently only available for 18 MHz crystal clock. You must choose
+ * USB_CFG_CLOCK_KHZ = 18000 if you enable this option.
+ */
+
/* ----------------------- Optional Hardware Config ------------------------ */