diff options
Diffstat (limited to 'tmk_core/protocol/vusb/usbconfig.h')
| -rw-r--r-- | tmk_core/protocol/vusb/usbconfig.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/tmk_core/protocol/vusb/usbconfig.h b/tmk_core/protocol/vusb/usbconfig.h index dcef7584c..041f7bd09 100644 --- a/tmk_core/protocol/vusb/usbconfig.h +++ b/tmk_core/protocol/vusb/usbconfig.h | |||
| @@ -85,9 +85,19 @@ section at the end of this file). | |||
| 85 | /* If the so-called endpoint 3 is used, it can now be configured to any other | 85 | /* If the so-called endpoint 3 is used, it can now be configured to any other |
| 86 | * endpoint number (except 0) with this macro. Default if undefined is 3. | 86 | * endpoint number (except 0) with this macro. Default if undefined is 3. |
| 87 | */ | 87 | */ |
| 88 | #define USB_CFG_HAVE_INTRIN_ENDPOINT4 1 | ||
| 89 | /* Define this to 1 if you want to compile a version with three endpoints: The | ||
| 90 | * default control endpoint 0, an interrupt-in endpoint 4 (or the number | ||
| 91 | * configured below) and a catch-all default interrupt-in endpoint as above. | ||
| 92 | * You must also define USB_CFG_HAVE_INTRIN_ENDPOINT to 1 for this feature. | ||
| 93 | */ | ||
| 94 | #define USB_CFG_EP4_NUMBER 4 | ||
| 95 | /* If the so-called endpoint 4 is used, it can now be configured to any other | ||
| 96 | * endpoint number (except 0) with this macro. Default if undefined is 4. | ||
| 97 | */ | ||
| 88 | /* #define USB_INITIAL_DATATOKEN USBPID_DATA1 */ | 98 | /* #define USB_INITIAL_DATATOKEN USBPID_DATA1 */ |
| 89 | /* The above macro defines the startup condition for data toggling on the | 99 | /* The above macro defines the startup condition for data toggling on the |
| 90 | * interrupt/bulk endpoints 1 and 3. Defaults to USBPID_DATA1. | 100 | * interrupt/bulk endpoints 1, 3 and 4. Defaults to USBPID_DATA1. |
| 91 | * Since the token is toggled BEFORE sending any data, the first packet is | 101 | * Since the token is toggled BEFORE sending any data, the first packet is |
| 92 | * sent with the oposite value of this configuration! | 102 | * sent with the oposite value of this configuration! |
| 93 | */ | 103 | */ |
| @@ -100,10 +110,10 @@ section at the end of this file). | |||
| 100 | #define USB_CFG_SUPPRESS_INTR_CODE 0 | 110 | #define USB_CFG_SUPPRESS_INTR_CODE 0 |
| 101 | /* Define this to 1 if you want to declare interrupt-in endpoints, but don't | 111 | /* Define this to 1 if you want to declare interrupt-in endpoints, but don't |
| 102 | * want to send any data over them. If this macro is defined to 1, functions | 112 | * want to send any data over them. If this macro is defined to 1, functions |
| 103 | * usbSetInterrupt() and usbSetInterrupt3() are omitted. This is useful if | 113 | * usbSetInterrupt(), usbSetInterrupt3() and usbSetInterrupt4() are omitted. |
| 104 | * you need the interrupt-in endpoints in order to comply to an interface | 114 | * This is useful if you need the interrupt-in endpoints in order to comply |
| 105 | * (e.g. HID), but never want to send any data. This option saves a couple | 115 | * to an interface (e.g. HID), but never want to send any data. This option |
| 106 | * of bytes in flash memory and the transmit buffers in RAM. | 116 | * saves a couple of bytes in flash memory and the transmit buffers in RAM. |
| 107 | */ | 117 | */ |
| 108 | #define USB_CFG_IS_SELF_POWERED 0 | 118 | #define USB_CFG_IS_SELF_POWERED 0 |
| 109 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the | 119 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the |
