aboutsummaryrefslogtreecommitdiffstats
path: root/usbdrv/usbconfig-prototype.h
diff options
context:
space:
mode:
authorChristian Starkjohann <cs+github@obdev.at>2009-08-12 16:30:23 +0000
committerChristian Starkjohann <cs+github@obdev.at>2009-08-12 16:30:23 +0000
commit621b168b700396caa9569ebb645511492817c748 (patch)
tree07131a9d18c0d30a4d6463e472dda7ffc0d6ff03 /usbdrv/usbconfig-prototype.h
parent3aa5195808868206835073e3c1a638a5973e20d8 (diff)
downloadv-usb-621b168b700396caa9569ebb645511492817c748.tar.gz
v-usb-621b168b700396caa9569ebb645511492817c748.tar.bz2
v-usb-621b168b700396caa9569ebb645511492817c748.zip
- added option for fast CRC routine
- optimized conventional CRC routine somewhat
Diffstat (limited to 'usbdrv/usbconfig-prototype.h')
-rw-r--r--usbdrv/usbconfig-prototype.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/usbdrv/usbconfig-prototype.h b/usbdrv/usbconfig-prototype.h
index 71c7acf..238b45a 100644
--- a/usbdrv/usbconfig-prototype.h
+++ b/usbdrv/usbconfig-prototype.h
@@ -201,6 +201,14 @@ section at the end of this file).
/* define this macro to 1 if you want the function usbMeasureFrameLength()
* compiled in. This function can be used to calibrate the AVR's RC oscillator.
*/
+#define USB_USE_FAST_CRC 0
+/* The assembler module has two implementations for the CRC algorithm. One is
+ * faster, the other is smaller. This CRC routine is only used for transmitted
+ * messages where timing is not critical. The faster routine needs 31 cycles
+ * per byte while the smaller one needs 61 to 69 cycles. The faster routine
+ * may be worth the 32 bytes bigger code size if you transmit lots of data and
+ * run the AVR close to its limit.
+ */
/* -------------------------- Device Description --------------------------- */