diff options
author | Christian Starkjohann <cs+github@obdev.at> | 2008-06-10 17:44:17 +0000 |
---|---|---|
committer | Christian Starkjohann <cs+github@obdev.at> | 2008-06-10 17:44:17 +0000 |
commit | dfb2c5fd5e27c6b82466a01ebc59a3ee00d125dc (patch) | |
tree | 0cb9d7efc98498debc9099479beacf8e7510cac6 /usbdrv/usbconfig-prototype.h | |
parent | 72d295266837d4af7e67b3ffc5d0eed335438b13 (diff) | |
download | v-usb-dfb2c5fd5e27c6b82466a01ebc59a3ee00d125dc.tar.gz v-usb-dfb2c5fd5e27c6b82466a01ebc59a3ee00d125dc.tar.bz2 v-usb-dfb2c5fd5e27c6b82466a01ebc59a3ee00d125dc.zip |
- added usbconfig.h option USB_CFG_CHECK_DATA_TOGGLING
Diffstat (limited to 'usbdrv/usbconfig-prototype.h')
-rw-r--r-- | usbdrv/usbconfig-prototype.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usbdrv/usbconfig-prototype.h b/usbdrv/usbconfig-prototype.h index eb66b81..035c627 100644 --- a/usbdrv/usbconfig-prototype.h +++ b/usbdrv/usbconfig-prototype.h @@ -156,6 +156,14 @@ section at the end of this file). * counts SOF packets. This feature requires that the hardware interrupt is * connected to D- instead of D+. */ +#define USB_CFG_CHECK_DATA_TOGGLING 0 +/* define this macro to 1 if you want to filter out duplicate data packets + * sent by the host. Duplicates occur only as a consequence of communication + * errors, when the host does not receive an ACK. Please note that you need to + * implement the filtering yourself in usbFunctionWriteOut() and + * usbFunctionWrite(). Use the global usbCurrentDataToken and a static variable + * for each control- and out-endpoint to check for duplicate packets. + */ #define USB_CFG_HAVE_MEASURE_FRAME_LENGTH 0 /* 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. |