aboutsummaryrefslogtreecommitdiffstats
path: root/usbdrv/usbconfig-prototype.h
diff options
context:
space:
mode:
authorChristian Starkjohann <cs+github@obdev.at>2008-10-21 16:13:07 +0000
committerChristian Starkjohann <cs+github@obdev.at>2008-10-21 16:13:07 +0000
commitd12a1700cd3ddefd7a3bcfcff2238ec6ec6d1234 (patch)
treee4364b16786037864b3f778ab687fd1d75953ebb /usbdrv/usbconfig-prototype.h
parentae840220bb1cc546e81992ea3e6e22f7b2a543d2 (diff)
downloadv-usb-d12a1700cd3ddefd7a3bcfcff2238ec6ec6d1234.tar.gz
v-usb-d12a1700cd3ddefd7a3bcfcff2238ec6ec6d1234.tar.bz2
v-usb-d12a1700cd3ddefd7a3bcfcff2238ec6ec6d1234.zip
- implemented option USB_CFG_SUPPRESS_INTR_CODE
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 488d776..79fe346 100644
--- a/usbdrv/usbconfig-prototype.h
+++ b/usbdrv/usbconfig-prototype.h
@@ -94,6 +94,14 @@ section at the end of this file).
* it is required by the standard. We have made it a config option because it
* bloats the code considerably.
*/
+#define USB_CFG_SUPPRESS_INTR_CODE 0
+/* Define this to 1 if you want to declare interrupt-in endpoints, but don't
+ * want to send any data over them. If this macro is defined to 1, functions
+ * usbSetInterrupt() and usbSetInterrupt3() are omitted. This is useful if
+ * you need the interrupt-in endpoints in order to comply to an interface
+ * (e.g. HID), but never want to send any data. This option saves a couple
+ * of bytes in flash memory and the transmit buffers in RAM.
+ */
#define USB_CFG_INTR_POLL_INTERVAL 10
/* If you compile a version with endpoint 1 (interrupt-in), this is the poll
* interval. The value is in milliseconds and must not be less than 10 ms for