diff options
-rw-r--r-- | tmk_core/protocol/arm_atsam/usb/udi_device_conf.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tmk_core/protocol/arm_atsam/usb/udi_device_conf.h b/tmk_core/protocol/arm_atsam/usb/udi_device_conf.h index 9c9d94789..1c0983115 100644 --- a/tmk_core/protocol/arm_atsam/usb/udi_device_conf.h +++ b/tmk_core/protocol/arm_atsam/usb/udi_device_conf.h | |||
@@ -23,6 +23,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
23 | #include "compiler.h" | 23 | #include "compiler.h" |
24 | #include "usb_protocol_hid.h" | 24 | #include "usb_protocol_hid.h" |
25 | 25 | ||
26 | #ifndef USB_POLLING_INTERVAL_MS | ||
27 | # define USB_POLLING_INTERVAL_MS 10 | ||
28 | #endif | ||
29 | |||
26 | #ifdef VIRTSER_ENABLE | 30 | #ifdef VIRTSER_ENABLE |
27 | // because CDC uses IAD (interface association descriptor | 31 | // because CDC uses IAD (interface association descriptor |
28 | // per USB Interface Association Descriptor Device Class Code and Use Model 7/23/2003 Rev 1.0) | 32 | // per USB Interface Association Descriptor Device Class Code and Use Model 7/23/2003 Rev 1.0) |
@@ -118,7 +122,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
118 | #define UDI_HID_KBD_EP_IN KEYBOARD_IN_EPNUM | 122 | #define UDI_HID_KBD_EP_IN KEYBOARD_IN_EPNUM |
119 | #define NEXT_IN_EPNUM_1 (KEYBOARD_IN_EPNUM + 1) | 123 | #define NEXT_IN_EPNUM_1 (KEYBOARD_IN_EPNUM + 1) |
120 | #define UDI_HID_KBD_EP_SIZE KEYBOARD_EPSIZE | 124 | #define UDI_HID_KBD_EP_SIZE KEYBOARD_EPSIZE |
121 | #define KBD_POLLING_INTERVAL 10 | 125 | #define KBD_POLLING_INTERVAL USB_POLLING_INTERVAL_MS |
122 | #ifndef UDI_HID_KBD_STRING_ID | 126 | #ifndef UDI_HID_KBD_STRING_ID |
123 | # define UDI_HID_KBD_STRING_ID 0 | 127 | # define UDI_HID_KBD_STRING_ID 0 |
124 | #endif | 128 | #endif |
@@ -128,7 +132,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
128 | # define NEXT_IN_EPNUM_2 (MOUSE_IN_EPNUM + 1) | 132 | # define NEXT_IN_EPNUM_2 (MOUSE_IN_EPNUM + 1) |
129 | # define UDI_HID_MOU_EP_IN MOUSE_IN_EPNUM | 133 | # define UDI_HID_MOU_EP_IN MOUSE_IN_EPNUM |
130 | # define UDI_HID_MOU_EP_SIZE MOUSE_EPSIZE | 134 | # define UDI_HID_MOU_EP_SIZE MOUSE_EPSIZE |
131 | # define MOU_POLLING_INTERVAL 10 | 135 | # define MOU_POLLING_INTERVAL USB_POLLING_INTERVAL_MS |
132 | # ifndef UDI_HID_MOU_STRING_ID | 136 | # ifndef UDI_HID_MOU_STRING_ID |
133 | # define UDI_HID_MOU_STRING_ID 0 | 137 | # define UDI_HID_MOU_STRING_ID 0 |
134 | # endif | 138 | # endif |
@@ -141,7 +145,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
141 | # define UDI_HID_EXK_EP_IN EXTRAKEY_IN_EPNUM | 145 | # define UDI_HID_EXK_EP_IN EXTRAKEY_IN_EPNUM |
142 | # define NEXT_IN_EPNUM_3 (EXTRAKEY_IN_EPNUM + 1) | 146 | # define NEXT_IN_EPNUM_3 (EXTRAKEY_IN_EPNUM + 1) |
143 | # define UDI_HID_EXK_EP_SIZE EXTRAKEY_EPSIZE | 147 | # define UDI_HID_EXK_EP_SIZE EXTRAKEY_EPSIZE |
144 | # define EXTRAKEY_POLLING_INTERVAL 10 | 148 | # define EXTRAKEY_POLLING_INTERVAL USB_POLLING_INTERVAL_MS |
145 | # ifndef UDI_HID_EXK_STRING_ID | 149 | # ifndef UDI_HID_EXK_STRING_ID |
146 | # define UDI_HID_EXK_STRING_ID 0 | 150 | # define UDI_HID_EXK_STRING_ID 0 |
147 | # endif | 151 | # endif |